Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / guality / clztest.c
blobb91059cc78ed659b23da8582bd840d5b9342f812
1 /* { dg-do run { target { { i?86-*-* x86_64-*-* } && lp64 } } } */
2 /* { dg-options "-g" } */
4 volatile int vv;
6 __attribute__((noinline, noclone)) long
7 foo (long x)
9 long f = __builtin_clzl (x);
10 long g = f;
11 asm volatile ("" : "+r" (f));
12 vv++; /* { dg-final { gdb-test 12 "g" "f" } } */
13 return f;
16 __attribute__((noinline, noclone)) long
17 bar (long x)
19 long f = __builtin_clzl (x);
20 long g = f;
21 asm volatile ("" : "+r" (f));
22 vv++; /* { dg-final { gdb-test 22 "g" "f" } } */
23 return f;
26 int
27 main ()
29 long x = vv;
30 foo (x + 0x123456UL);
31 bar (x + 0x7fffffffUL);
32 return 0;