diff options
| -rw-r--r-- | simplify.c | 3 | ||||
| -rw-r--r-- | validation/optim/cse-reg01.c | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -1474,6 +1474,9 @@ static int canonical_order(pseudo_t p1, pseudo_t p2) if (p1->type == PSEUDO_ARG) return (p2->type == PSEUDO_ARG && p1->nr <= p2->nr) || p2->type == PSEUDO_VAL || p2->type == PSEUDO_SYM; + if (p1->type == PSEUDO_REG) + return (p2->type == PSEUDO_REG && p1->nr <= p2->nr) || p2->type == PSEUDO_VAL || p2->type == PSEUDO_SYM || p2->type == PSEUDO_ARG; + return 1; } diff --git a/validation/optim/cse-reg01.c b/validation/optim/cse-reg01.c index 938858f4..3ea283d3 100644 --- a/validation/optim/cse-reg01.c +++ b/validation/optim/cse-reg01.c @@ -3,7 +3,6 @@ int foo(int a, int b) { int x = a + b, y = ~b; return (x < y) == (y > x); } /* * check-name: cse-reg01 * check-command: test-linearize -Wno-decl $file - * check-known-to-fail * * check-output-ignore * check-output-returns: 1 |
