builtin-has-attribute-4.c: Skip on 32-bit hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gcc.dg / ifcvt-3.c
blobb250bc15e0806776ee10bdbc23a3446d9a19a19f
1 /* { dg-do compile { target { { aarch64*-*-* i?86-*-* x86_64-*-* } && lp64 } } } */
2 /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-unpredictable-cost=100" } */
4 typedef long long s64;
6 int
7 foo (s64 a, s64 b, s64 c)
9 s64 d = a - b;
11 if (d == 0)
12 return a + c;
13 else
14 return b + d + c;
17 /* This test can be reduced to just return a + c; */
18 /* { dg-final { scan-rtl-dump "3 true changes made" "ce1" } } */
19 /* { dg-final { scan-assembler-not "sub\.*\tx\[0-9\]+, x\[0-9\]+, x\[0-9\]+\.*" { target { aarch64*-*-* } } } } */