mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Add a FrontendC testcase for the x86-64 Red Zone feature,
to help verify that the feature may be disabled through the -mno-red-zone option. llvm-svn: 63079
This commit is contained in:
parent
f3c2ac3497
commit
c39a03f3fa
11
test/FrontendC/x86-64-red-zone.c
Normal file
11
test/FrontendC/x86-64-red-zone.c
Normal file
@ -0,0 +1,11 @@
|
||||
// RUN: $llvmgcc -m64 -fomit-frame-pointer -O2 %s -S -o - > %t
|
||||
// RUN: not grep subq %t
|
||||
// RUN: not grep addq %t
|
||||
// RUN: grep {\\-4(%%rsp)} %t | count 2
|
||||
// RUN: $llvmgcc -m64 -fomit-frame-pointer -O2 %s -S -o - -mno-red-zone > %t
|
||||
// RUN: grep subq %t | count 1
|
||||
// RUN: grep addq %t | count 1
|
||||
// This is a test for x86-64, add your target below if it FAILs.
|
||||
// XFAIL: alpha|ia64|arm|powerpc|sparc|x86
|
||||
|
||||
long double f0(float f) { return f; }
|
Loading…
Reference in New Issue
Block a user