diff --git a/testsuite/small/attr-1.c b/testsuite/small/attr-1.c index 2943176..e2cc697 100644 --- a/testsuite/small/attr-1.c +++ b/testsuite/small/attr-1.c @@ -2,6 +2,8 @@ /* { dg-skip-on-archs "s390x" }*/ #ifdef __x86_64__ register unsigned long current_stack_pointer asm("rsp"); +#elif __i386__ +register unsigned long current_stack_pointer asm("esp"); #elif __aarch64__ register unsigned long current_stack_pointer asm("sp"); #elif __PPC64__ diff --git a/testsuite/small/attr-6.c b/testsuite/small/attr-6.c index 0960aef..b2d26cc 100644 --- a/testsuite/small/attr-6.c +++ b/testsuite/small/attr-6.c @@ -2,6 +2,8 @@ /* { dg-skip-on-archs "s390x" }*/ #ifdef __x86_64__ #define REG "rsp" +#elif __i386__ +#define REG "esp" #elif __aarch64__ #define REG "sp" #elif __PPC64__ @@ -15,6 +17,6 @@ unsigned long f() return current_stack_pointer; } -/* { dg-final { scan-tree-dump "#define REG \"(rsp|sp|r1)\"" } } */ +/* { dg-final { scan-tree-dump "#define REG \"(rsp|esp|sp|r1)\"" } } */ /* { dg-final { scan-tree-dump "current_stack_pointer asm\(REG\)" } } */ /* { dg-final { scan-tree-dump "unsigned long f" } } */