diff options
author | Dan Gohman <gohman@apple.com> | 2009-01-27 00:59:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-01-27 00:59:55 +0000 |
commit | 49237f04a8982e919bce667a47e0024cd0705d60 (patch) | |
tree | 31fa5018a7860d0f12389f51c9abe2407139cced | |
parent | 499cb3fcfb49da80bb9ed983598f3d5c5ae72e59 (diff) | |
download | external_llvm-49237f04a8982e919bce667a47e0024cd0705d60.zip external_llvm-49237f04a8982e919bce667a47e0024cd0705d60.tar.gz external_llvm-49237f04a8982e919bce667a47e0024cd0705d60.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63079 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/FrontendC/x86-64-red-zone.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FrontendC/x86-64-red-zone.c b/test/FrontendC/x86-64-red-zone.c new file mode 100644 index 0000000..e3e3cab --- /dev/null +++ b/test/FrontendC/x86-64-red-zone.c @@ -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; } |