llvm.org GIT mirror llvm / cf79522
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 Hal Finkel 6 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc -march=ppc32 < %s -o - | grep "__stack_chk_guard"
1 ; RUN: llc -march=ppc32 < %s -o - | grep "__stack_chk_fail"
0 ; RUN: llc -march=ppc32 -mtriple=ppc32-unknown-linux < %s | FileCheck %s
1 ; CHECK: __stack_chk_guard
2 ; CHECK: __stack_chk_fail
23
34 @"\01LC" = internal constant [11 x i8] c"buf == %s\0A\00" ; <[11 x i8]*> [#uses=1]
45