2 /* { dg-do compile } */
3 /* { dg-options "-Wall -Werror" } */
6 # define ASM __asm__("$30")
8 # define ASM __asm__("esp")
9 #elif defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) || defined (_POWER)
10 # define ASM __asm__("r1")
11 #elif defined __s390__
12 # define ASM __asm__("r15")
14 # define ASM __asm__("$sp")
15 #elif defined __sparc__
16 # define ASM __asm__("sp")
17 #elif defined __ia64__
18 # define ASM __asm__("r12")
19 #elif defined __hppa__
20 # define ASM __asm__("%r30")
21 #elif defined __xtensa__
22 # define ASM __asm__("sp")
24 /* The register name should be target-dependent so for other targets,
25 we just silence the test. */
31 register void *sp ASM
;
32 return sp
; /* { dg-bogus "uninitialized" } */