projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c81c726
)
added eor test
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 14 Sep 2007 10:46:24 +0000
(10:46 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 14 Sep 2007 10:46:24 +0000
(10:46 +0000)
[r15802]
ir/be/test/localopts.c
patch
|
blob
|
history
diff --git
a/ir/be/test/localopts.c
b/ir/be/test/localopts.c
index
fa08360
..
364c763
100644
(file)
--- a/
ir/be/test/localopts.c
+++ b/
ir/be/test/localopts.c
@@
-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);
}