Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
efc1a4d9
Commit
efc1a4d9
authored
Sep 17, 1993
by
Per Bothner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(invert_truthvalue): Allow arbitrary BOOLEAN_TYPE arguments.
From-SVN: r5351
parent
925d5bbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
gcc/fold-const.c
+6
-4
No files found.
gcc/fold-const.c
View file @
efc1a4d9
...
...
@@ -2181,12 +2181,14 @@ invert_truthvalue (arg)
invert_truthvalue
(
TREE_OPERAND
(
arg
,
0
)));
case
BIT_AND_EXPR
:
if
(
!
integer_onep
(
TREE_OPERAND
(
arg
,
1
)))
abort
()
;
if
(
!
integer_onep
(
TREE_OPERAND
(
arg
,
1
)))
break
;
return
build
(
EQ_EXPR
,
type
,
arg
,
convert
(
type
,
integer_zero_node
));
}
abort
();
}
if
(
TREE_CODE
(
TREE_TYPE
(
arg
))
!=
BOOLEAN_TYPE
)
abort
();
return
build1
(
TRUTH_NOT_EXPR
,
type
,
arg
);
}
/* Given a bit-wise operation CODE applied to ARG0 and ARG1, see if both
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment