1 /* PR tree-optimization/33619 */
3 /* { dg-options "-O2" } */
6 # define REG1 __asm__ ("3")
7 # define REG2 __asm__ ("4")
8 #elif defined __x86_64__
9 # define REG1 __asm__ ("rdi")
10 # define REG2 __asm__ ("rsi")
17 bar (unsigned long x
, int y
)
19 register unsigned long p1 REG1
= x
;
20 register unsigned long p2 REG2
= y
;
21 __asm__
volatile ("" : "=r" (p1
), "=r" (p2
) : "0" (p1
), "1" (p2
) : "memory");
22 if (p1
!= 0xdeadUL
|| p2
!= 0xbefUL
)
26 __attribute__((const, noinline
)) int
32 __attribute__((noinline
)) void
33 foo (unsigned long *x
, int y
)
42 unsigned long a
= 0xdeadUL
;