added eor test
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 14 Sep 2007 10:46:24 +0000 (10:46 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 14 Sep 2007 10:46:24 +0000 (10:46 +0000)
[r15802]

ir/be/test/localopts.c

index fa08360..364c763 100644 (file)
@@ -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);
 }