summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86
diff options
context:
space:
mode:
authorDavid Bozier <seifsta@gmail.com>2017-02-09 15:40:14 +0000
committerDavid Bozier <seifsta@gmail.com>2017-02-09 15:40:14 +0000
commit93e773e9be0e901bd823439e4eedffba342ad8f9 (patch)
tree689711d5e87030465f99016ed925bccf5f8561bd /llvm/test/CodeGen/X86
parented441c7060a61b78cbd75853836af87cd3ce1fb4 (diff)
downloadbcm5719-llvm-93e773e9be0e901bd823439e4eedffba342ad8f9.tar.gz
bcm5719-llvm-93e773e9be0e901bd823439e4eedffba342ad8f9.zip
Revert: "[Stack Protection] Add diagnostic information for why stack protection was applied to a function"
this reverts revision r294590 as it broke some buildbots. llvm-svn: 294593
Diffstat (limited to 'llvm/test/CodeGen/X86')
-rw-r--r--llvm/test/CodeGen/X86/stack-protector-remarks.ll87
1 files changed, 0 insertions, 87 deletions
diff --git a/llvm/test/CodeGen/X86/stack-protector-remarks.ll b/llvm/test/CodeGen/X86/stack-protector-remarks.ll
deleted file mode 100644
index f02384a6daa..00000000000
--- a/llvm/test/CodeGen/X86/stack-protector-remarks.ll
+++ /dev/null
@@ -1,87 +0,0 @@
-; RUN: llc %s -o /dev/null 2>&1 | FileCheck %s
-; CHECK-NOT: nossp
-; CHECK-NOT: alloca_fixed_small_nossp
-; CHECK: function attribute_ssp
-; CHECK-SAME: a function attribute or command-line switch
-; CHECK: function alloca_fixed_small_ssp
-; CHECK-SAME: a call to alloca or use of a variable length array
-; CHECK: function alloca_fixed_large_ssp
-; CHECK-SAME: a call to alloca or use of a variable length array
-; CHECK: function alloca_variable_ssp
-; CHECK-SAME: a call to alloca or use of a variable length array
-; CHECK: function buffer_ssp
-; CHECK-SAME: a stack allocated buffer or struct containing a buffer
-; CHECK: function struct_ssp
-; CHECK-SAME: a stack allocated buffer or struct containing a buffer
-; CHECK: function address_ssp
-; CHECK-SAME: the address of a local variable being taken
-; CHECK: function multiple_ssp
-; CHECK-SAME: a function attribute or command-line switch
-; CHECK: function multiple_ssp
-; CHECK-SAME: a stack allocated buffer or struct containing a buffer
-; CHECK: function multiple_ssp
-; CHECK-SAME: a stack allocated buffer or struct containing a buffer
-; CHECK: function multiple_ssp
-; CHECK-SAME: the address of a local variable being taken
-; CHECK: function multiple_ssp
-; CHECK-SAME: a call to alloca or use of a variable length array
-
-define void @nossp() sspstrong {
- ret void
-}
-
-define void @attribute_ssp() sspreq {
- ret void
-}
-
-define void @alloca_fixed_small_nossp() ssp {
- %1 = alloca i8, i64 2, align 16
- ret void
-}
-
-define void @alloca_fixed_small_ssp() sspstrong {
- %1 = alloca i8, i64 2, align 16
- ret void
-}
-
-define void @alloca_fixed_large_ssp() ssp {
- %1 = alloca i8, i64 64, align 16
- ret void
-}
-
-define void @alloca_variable_ssp(i64 %x) ssp {
- %1 = alloca i8, i64 %x, align 16
- ret void
-}
-
-define void @buffer_ssp() sspstrong {
- %x = alloca [64 x i32], align 16
- ret void
-}
-
-%struct.X = type { [64 x i32] }
-define void @struct_ssp() sspstrong {
- %x = alloca %struct.X, align 4
- ret void
-}
-
-define void @address_ssp() sspstrong {
-entry:
- %x = alloca i32, align 4
- %y = alloca i32*, align 8
- store i32 32, i32* %x, align 4
- store i32* %x, i32** %y, align 8
- ret void
-}
-
-define void @multiple_ssp() sspreq {
-entry:
- %x = alloca %struct.X, align 4
- %y = alloca [64 x i32], align 16
- %a = alloca i32, align 4
- %b = alloca i32*, align 8
- %0 = alloca i8, i64 2, align 16
- store i32 32, i32* %a, align 4
- store i32* %a, i32** %b, align 8
- ret void
-}
OpenPOWER on IntegriCloud