From a02223ddc2495df48b31ee7641d3e78032286598 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 14 Sep 2007 10:46:24 +0000 Subject: [PATCH] added eor test [r15802] --- ir/be/test/localopts.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ir/be/test/localopts.c b/ir/be/test/localopts.c index fa083605f..364c7633e 100644 --- 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); } -- 2.20.1