Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
a02223dd
Commit
a02223dd
authored
Sep 14, 2007
by
Michael Beck
Browse files
added eor test
[r15802]
parent
c81c7260
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/localopts.c
View file @
a02223dd
...
...
@@ -115,6 +115,10 @@ int demorgan2(int a, int b) {
return
(
~
a
)
|
(
~
b
);
}
int
eor1
(
int
a
,
int
b
)
{
return
a
&
(
a
^
b
);
}
int
main
(
void
)
{
#define TU(func,x,expect) \
...
...
@@ -150,4 +154,5 @@ int main(void)
TU
(
shrs1
,
-
3
,
-
1
);
TB
(
demorgan1
,
42
,
17
,
~
(
42
|
17
));
TB
(
demorgan2
,
42
,
17
,
~
(
42
&
17
));
TB
(
eor1
,
42
,
17
,
42
&~
17
);
}
Write
Preview
Supports
Markdown
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