summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-06-28 20:18:14 +0000
committerHal Finkel <hfinkel@anl.gov>2013-06-28 20:18:14 +0000
commit147c287d9181c6a9d7371ef78c7251ac07c66b2a (patch)
tree06985b76f3849657b63a866147ca4ea7aea3d460 /llvm
parente9dd5f98cf80ed2e6edc213da3226283e7ba7ad5 (diff)
downloadbcm5719-llvm-147c287d9181c6a9d7371ef78c7251ac07c66b2a.tar.gz
bcm5719-llvm-147c287d9181c6a9d7371ef78c7251ac07c66b2a.zip
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. llvm-svn: 185206
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/CodeGen/PowerPC/stack-protector.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/PowerPC/stack-protector.ll b/llvm/test/CodeGen/PowerPC/stack-protector.ll
index 810630f6978..b81d94181cd 100644
--- a/llvm/test/CodeGen/PowerPC/stack-protector.ll
+++ b/llvm/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]
OpenPOWER on IntegriCloud