Fix CodeGen/PowerPC/stack-protector.ll on OpenBSD
authorHal Finkel <hfinkel@anl.gov>
Fri, 28 Jun 2013 20:18:14 +0000 (20:18 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 28 Jun 2013 20:18:14 +0000 (20:18 +0000)
commitcf7952224921b848e148605c8b9e3629ff74fa2f
treef17f492d9501a00792ac521da9fb86f63b20aa33
parent59eaa3874663f80ce111a4781b8f1db82995210c
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
test/CodeGen/PowerPC/stack-protector.ll