1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 int
5 f1 (long x)
6 {
7 return ((short) x >= 0) ? x : 0;
8 }
9
10 /* { dg-final { scan-assembler "tst\t(x|w)\[0-9\]*.*32768\n" } } */