1 /* PR target/88425 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -masm=att" } */
4 /* { dg-final { scan-assembler-times "sbb\[lq]\[ \t]" 8 } } */
5 /* { dg-final { scan-assembler-not "setbe\[ \t]" } } */
6 
7 unsigned long
f1(unsigned long x)8 f1 (unsigned long x)
9 {
10   return x < 123UL ? -1UL : 0;
11 }
12 
13 unsigned long
f2(unsigned int x)14 f2 (unsigned int x)
15 {
16   return x < 12345U ? -1UL : 0;
17 }
18 
19 unsigned long
f3(unsigned short * x)20 f3 (unsigned short *x)
21 {
22   return x[0] < 1234U ? -1UL : 0;
23 }
24 
25 unsigned long
f4(unsigned char * x)26 f4 (unsigned char *x)
27 {
28   return x[0] < 123U ? -1UL : 0;
29 }
30 
31 unsigned int
f5(unsigned long x)32 f5 (unsigned long x)
33 {
34   return x < 123UL ? -1U : 0;
35 }
36 
37 unsigned int
f6(unsigned int x)38 f6 (unsigned int x)
39 {
40   return x < 12345U ? -1U : 0;
41 }
42 
43 unsigned int
f7(unsigned short * x)44 f7 (unsigned short *x)
45 {
46   return x[0] < 1234U ? -1U : 0;
47 }
48 
49 unsigned int
f8(unsigned char * x)50 f8 (unsigned char *x)
51 {
52   return x[0] < 123U ? -1U : 0;
53 }
54