1 /* PR tree-optimization/68671 */
2 /* { dg-do run } */
3 /* { dg-options " -O2 -fno-tree-dce" } */
4 /* { dg-xfail-if "ptxas crashes" { nvptx-*-* } } */
5 
6 volatile int a = -1;
7 volatile int b;
8 
9 static inline int
fn1(signed char p1,int p2)10 fn1 (signed char p1, int p2)
11 {
12   return (p1 < 0) || (p1 > (1 >> p2)) ? 0 : (p1 << 1);
13 }
14 
15 int
main()16 main ()
17 {
18   signed char c = a;
19   b = fn1 (c, 1);
20   c = ((128 | c) < 0 ? 1 : 0);
21   if (c != 1)
22     __builtin_abort ();
23   return 0;
24 }
25