; 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:  .type __stack_chk_guard,@object
; CHECK:  .local  __stack_chk_guard
; CHECK:  .comm __stack_chk_guard,64,16

; 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
; 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

Improve r272262, check that __stack_chk_guard is used.
Improve r272262, check that  __stack_chk_guard is used.

Thanks to Rafael for the suggestion.


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@272277 91177308-0d34-0410-b5e6-96231b3b80d8
