diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
tree | 4def12e759965de927d963ac65840d663ef9d1ea /test/CodeGen/X86/stackguard-internal.ll | |
parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) |
Diffstat (limited to 'test/CodeGen/X86/stackguard-internal.ll')
-rw-r--r-- | test/CodeGen/X86/stackguard-internal.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/stackguard-internal.ll b/test/CodeGen/X86/stackguard-internal.ll new file mode 100644 index 0000000000000..328e04b9a718c --- /dev/null +++ b/test/CodeGen/X86/stackguard-internal.ll @@ -0,0 +1,15 @@ +; Check that the backend doesn't crash. +; RUN: llc -mtriple=x86_64-pc-freebsd %s -o - | FileCheck %s + +@__stack_chk_guard = internal global [8 x i64] zeroinitializer, align 16 + +define void @f() sspstrong { + %tbl = alloca [4 x i64], align 16 + ret void +} + +; CHECK: movq __stack_chk_guard(%rip), %rax +; CHECK: movq __stack_chk_guard(%rip), %rax +; CHECK: .type __stack_chk_guard,@object +; CHECK: .local __stack_chk_guard +; CHECK: .comm __stack_chk_guard,64,16 |