comparison gcc/testsuite/gcc.dg/guality/bswaptest.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
7 foo (long x) 7 foo (long x)
8 { 8 {
9 long f = __builtin_bswap64 (x); 9 long f = __builtin_bswap64 (x);
10 long g = f; 10 long g = f;
11 asm volatile ("" : "+r" (f)); 11 asm volatile ("" : "+r" (f));
12 vv++; /* { dg-final { gdb-test 12 "g" "f" } } */ 12 vv++; /* { dg-final { gdb-test . "g" "f" } } */
13 return f; 13 return f;
14 } 14 }
15 15
16 __attribute__((noclone, noinline)) int 16 __attribute__((noclone, noinline)) int
17 bar (int x) 17 bar (int x)
18 { 18 {
19 int f = __builtin_bswap32 (x); 19 int f = __builtin_bswap32 (x);
20 int g = f; 20 int g = f;
21 asm volatile ("" : "+r" (f)); 21 asm volatile ("" : "+r" (f));
22 vv++; /* { dg-final { gdb-test 22 "g" "f" } } */ 22 vv++; /* { dg-final { gdb-test . "g" "f" } } */
23 return f; 23 return f;
24 } 24 }
25 25
26 int 26 int
27 main () 27 main ()