c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / vax / cmpelim-le-movqi.c
blob8c73a82224052fcc26510a23d918cb2008fadc3a
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-rtl-cmpelim -dp" } */
3 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
5 typedef int __attribute__ ((mode (QI))) int_t;
7 void
8 le_movqi (int_t *w, int_t *x)
10 int_t v;
12 v = *x;
13 if (v <= 0)
14 *w = v;
15 else
16 *w = v + 2;
19 /* Expect assembly like:
21 movb *8(%ap),%r0 # 27 [c=24] *movqi_ccnz
22 jleq .L2 # 29 [c=26] *branch_ccnz
23 addb2 $2,%r0 # 26 [c=32] *addqi3
24 .L2:
28 /* { dg-final { scan-rtl-dump-times "deleting insn with uid" 1 "cmpelim" } } */
29 /* { dg-final { scan-assembler-not "\t(bit|cmpz?|tst). " } } */
30 /* { dg-final { scan-assembler "movqi\[^ \]*_ccnz(/\[0-9\]+)?\n" } } */
31 /* { dg-final { scan-assembler "branch_ccnz\n" } } */