diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-06-28 20:18:14 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-06-28 20:18:14 +0000 |
commit | cf7952224921b848e148605c8b9e3629ff74fa2f (patch) | |
tree | f17f492d9501a00792ac521da9fb86f63b20aa33 /test/CodeGen/PowerPC/stack-protector.ll | |
parent | 59eaa3874663f80ce111a4781b8f1db82995210c (diff) | |
download | external_llvm-cf7952224921b848e148605c8b9e3629ff74fa2f.zip external_llvm-cf7952224921b848e148605c8b9e3629ff74fa2f.tar.gz external_llvm-cf7952224921b848e148605c8b9e3629ff74fa2f.tar.bz2 |
Fix CodeGen/PowerPC/stack-protector.ll on OpenBSD
On OpenBSD, the stack-smash protection transform uses "__guard_local"
and "__stack_smash_handler" instead of "__stack_chk_guard" and
"__stack_chk_fail". However, CodeGen/PowerPC/stack-protector.ll
doesn't specify a target OS, so on OpenBSD it fails.
Add -mtriple=ppc32-unknown-linux to make the test host-OS agnostic. While
there, convert to FileCheck.
Patch by Matthew Dempsky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/stack-protector.ll')
-rw-r--r-- | test/CodeGen/PowerPC/stack-protector.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CodeGen/PowerPC/stack-protector.ll b/test/CodeGen/PowerPC/stack-protector.ll index 810630f..b81d941 100644 --- a/test/CodeGen/PowerPC/stack-protector.ll +++ b/test/CodeGen/PowerPC/stack-protector.ll @@ -1,5 +1,6 @@ -; RUN: llc -march=ppc32 < %s -o - | grep "__stack_chk_guard" -; RUN: llc -march=ppc32 < %s -o - | grep "__stack_chk_fail" +; RUN: llc -march=ppc32 -mtriple=ppc32-unknown-linux < %s | FileCheck %s +; CHECK: __stack_chk_guard +; CHECK: __stack_chk_fail @"\01LC" = internal constant [11 x i8] c"buf == %s\0A\00" ; <[11 x i8]*> [#uses=1] |