From 12ddbbbdf582d8acbb6bc3b9f6c6b7c6cba6a770 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 13 Sep 2007 13:55:57 +0000 Subject: [PATCH] more cases added [r15788] --- ir/be/test/localopts.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ir/be/test/localopts.c b/ir/be/test/localopts.c index 3d8ca0c65..2c663eae9 100644 --- a/ir/be/test/localopts.c +++ b/ir/be/test/localopts.c @@ -75,6 +75,14 @@ int cmp8(int x, int y, int z) { return z -x != z - y; } +int cmp9(int x) { + return -x == 3; +} + +int cmp10(int x) { + return -x != 3; +} + int main(void) { #define TU(func,x,expect) \ @@ -100,4 +108,6 @@ int main(void) TT(cmp6, 42, 17, -4, 1); TT(cmp7, 42, 17, -4, 0); TT(cmp8, 42, 17, -4, 1); + TU(cmp9, -3, 1); + TU(cmp10, -3, 0); } -- 2.20.1