diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2011-02-02 07:17:02 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2011-02-02 07:17:02 +0000 |
| commit | fe719128e9a1f05b456261250f91aa0b8de47aad (patch) | |
| tree | b7e3e956e13352e6568dc1ef55ce8b6fe32b61d8 /clang | |
| parent | 75033770f4be4695964ca7619334c747d0c96836 (diff) | |
| download | bcm5719-llvm-fe719128e9a1f05b456261250f91aa0b8de47aad.tar.gz bcm5719-llvm-fe719128e9a1f05b456261250f91aa0b8de47aad.zip | |
Fix test by fully specifying the platform.
llvm-svn: 124719
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/CodeGen/frame-pointer-elim.c | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/clang/test/CodeGen/frame-pointer-elim.c b/clang/test/CodeGen/frame-pointer-elim.c index 79c0599467a..e9dc22b3aa1 100644 --- a/clang/test/CodeGen/frame-pointer-elim.c +++ b/clang/test/CodeGen/frame-pointer-elim.c @@ -1,13 +1,22 @@ -// RUN: %clang -ccc-host-triple i386 -S -o - %s | \ -// RUN: FileCheck --check-prefix=DEFAULT %s -// DEFAULT: f0: -// DEFAULT: pushl %ebp -// DEFAULT: ret -// DEFAULT: f1: -// DEFAULT: pushl %ebp -// DEFAULT: ret +// RUN: %clang -ccc-host-triple i386-apple-darwin -S -o - %s | \ +// RUN: FileCheck --check-prefix=DARWIN %s +// DARWIN: f0: +// DARWIN: pushl %ebp +// DARWIN: ret +// DARWIN: f1: +// DARWIN: pushl %ebp +// DARWIN: ret -// RUN: %clang -ccc-host-triple i386 -S -o - -fomit-frame-pointer %s | \ +// RUN: %clang -ccc-host-triple i386-pc-linux-gnu -S -o - %s | \ +// RUN: FileCheck --check-prefix=LINUX %s +// LINUX: f0: +// LINUX-NOT: pushl %ebp +// LINUX: ret +// LINUX: f1: +// LINUX: pushl %ebp +// LINUX: ret + +// RUN: %clang -ccc-host-triple i386-darwin -S -o - -fomit-frame-pointer %s | \ // RUN: FileCheck --check-prefix=OMIT_ALL %s // OMIT_ALL: f0: // OMIT_ALL-NOT: pushl %ebp @@ -16,7 +25,7 @@ // OMIT_ALL-NOT: pushl %ebp // OMIT_ALL: ret -// RUN: %clang -ccc-host-triple i386 -S -o - -momit-leaf-frame-pointer %s | \ +// RUN: %clang -ccc-host-triple i386-darwin -S -o - -momit-leaf-frame-pointer %s | \ // RUN: FileCheck --check-prefix=OMIT_LEAF %s // OMIT_LEAF: f0: // OMIT_LEAF-NOT: pushl %ebp |

