x86: Add a testcase for PR target/31799
Add a testcase for PR target/31799 which was fixed by
commit 4f0473fe89
Author: Uros Bizjak <ubizjak@gmail.com>
Date: Fri May 12 21:04:05 2017 +0200
compare-elim.c (try_eliminate_compare): Canonicalize operation with embedded compare to [(set (reg:CCM) (compare:CCM...
* compare-elim.c (try_eliminate_compare): Canonicalize
operation with embedded compare to
[(set (reg:CCM) (compare:CCM (operation) (immediate)))
(set (reg) (operation)].
* config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
in GCC 8.
PR target/31799
* gcc.target/i386/pr31799.c: New test.
This commit is contained in:
parent
0f6759240f
commit
7f87b4ef23
|
@ -0,0 +1,12 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2" } */
|
||||
|
||||
void
|
||||
foo (int x, int *y, int *z)
|
||||
{
|
||||
*z = ++x;
|
||||
if (x != 0)
|
||||
*y = 1;
|
||||
}
|
||||
|
||||
/* { dg-final { scan-assembler-not "test" } } */
|
Loading…
Reference in New Issue