1 /* { dg-do compile } */ 2 /* { dg-options "-O2" } */ 3 4 int z; 5 int foo(int x,int y)6foo (int x, int y) 7 { 8 int l = x - y; 9 if (l == 0) 10 return 5; 11 12 /* { dg-final { scan-assembler "subs\tw\[0-9\]" } } */ 13 z = l ; 14 return 25; 15 } 16 17 typedef long long s64; 18 19 s64 zz; 20 s64 foo2(s64 x,s64 y)21foo2 (s64 x, s64 y) 22 { 23 s64 l = x - y; 24 if (l < 0) 25 return 5; 26 27 /* { dg-final { scan-assembler "subs\tx\[0-9\]" } } */ 28 zz = l ; 29 return 25; 30 } 31