1 /* { dg-do compile } */
2 /* { dg-options "-O" } */
3 /* { dg-bogus "internal compiler error" "ICE" { target *-*-* } 0 } */
5 #define ASMDECL __asm (REG);
6 #define CLOBBER_LIST : REG
7 #define INP_CLOBBER_LIST : CLOBBER_LIST
8 #if defined (__alpha__)
10 #elif defined (__CRIS__) || defined (__sh__)
12 #elif defined (__i386__)
14 #elif defined (__MMIX__)
16 #elif defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) \
17 || defined (__POWERPC__) || defined (PPC) || defined (_IBMR2)
19 #elif defined (__x86_64__)
22 /* Make this test harmless for any target not recognized above. */
25 # define REG "conflict"
28 # undef INP_CLOBBER_LIST
29 # define INP_CLOBBER_LIST
49 register char* dst ASMDECL
;
50 __asm__ ("":"=g"(*dst
): : REG
); /* { dg-error "conflict" } */
53 /* The tree optimizers currently prevent us from finding an overlap -
54 we end up using a copy of dst rather than dst.
55 But at least make sure we don't get an ICE. */
58 register char* dst ASMDECL
;
59 __asm__ ("": :"g"(*dst
) CLOBBER_LIST
);
65 register struct C
*dst ASMDECL
;
66 __asm__ ("" : "=g"(dst
->c
.b
[1].a
) INP_CLOBBER_LIST
);