1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
5 cmp_si_test1 (int a
, int b
, int c
)
14 cmp_si_test2 (int a
, int b
, int c
)
22 typedef long long s64
;
25 cmp_di_test1 (s64 a
, s64 b
, s64 c
)
34 cmp_di_test2 (s64 a
, s64 b
, s64 c
)
43 cmp_di_test3 (int a
, s64 b
, s64 c
)
52 cmp_di_test4 (int a
, s64 b
, s64 c
)
54 if (((s64
)a
<< 3) > b
)
60 /* { dg-final { scan-assembler-times "cmp\tw\[0-9\]+, w\[0-9\]+" 2 } } */
61 /* { dg-final { scan-assembler-times "cmp\tx\[0-9\]+, x\[0-9\]+" 4 } } */