OSDN Git Service

Improve r272262, check that __stack_chk_guard is used.
authorDavide Italiano <davide@freebsd.org>
Thu, 9 Jun 2016 17:04:38 +0000 (17:04 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 9 Jun 2016 17:04:38 +0000 (17:04 +0000)
Thanks to Rafael for the suggestion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272277 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/stackguard-internal.ll

index 4b815c9..2830aae 100644 (file)
@@ -8,6 +8,8 @@ define void @f() sspstrong {
   ret void
 }
 
+; CHECK:  movq  __stack_chk_guard(%rip), %rax
+; CHECKL  movq  __stack_chk_guard(%rip), %rax
 ; CHECK:  .type __stack_chk_guard,@object
 ; CHECK:  .local  __stack_chk_guard
 ; CHECK:  .comm __stack_chk_guard,64,16