1 /* Check that eliminable compare-instructions are eliminated. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 /* { dg-final { scan-assembler-not "\tcmp|\ttest" } } */
5
6 #define t int
7 #define op >>
8 #define f ashrtf
9
10 /* If we don't disable g, it will degenerate into a test of the
11 input. */
12 #define do_g 0
13
14 #include "pr93372-16.c"
15 #undef do_g
16
17 #undef t
18 #define t unsigned int
19 #undef f
20 #undef g
21 #define f lshrtf
22 #define g lshrtg
23 #include "pr93372-16.c"
24
25 #undef f
26 #undef g
27 #undef op
28 #define op <<
29 #define f shlf
30 #define g shlg
31 #include "pr93372-16.c"