c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / vax / peephole2-lt-andsi.c
blob4045b360ab593f3c77bafc0aa0cab497b45978b1
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-rtl-peephole2 -dp" } */
3 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" "-O1" } { "" } } */
5 typedef int __attribute__ ((mode (SI))) int_t;
7 int_t
8 lt_andsi (int_t x, int_t y)
10 x &= y;
11 if (x < 0)
12 return 1;
13 else
14 return 2;
17 /* Expect assembly like:
19 bitl 4(%ap),8(%ap) # 68 [c=34] *bitsi_ccn
20 jgeq .L6 # 57 [c=26] *branch_ccn
21 movl $1,%r0 # 52 [c=4] *movsi_2
22 ret # 63 [c=0] return
23 .L6:
27 /* { dg-final { scan-rtl-dump-times "Splitting with gen_peephole2" 1 "peephole2" } } */
28 /* { dg-final { scan-assembler-not "\t(cmpz?|tst). " } } */
29 /* { dg-final { scan-assembler "bitsi\[^ \]*_ccn(/\[0-9\]+)?\n" } } */
30 /* { dg-final { scan-assembler "branch_ccn\n" } } */