xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/stackguard-internal.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; Check that the backend doesn't crash.
2*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=x86_64-pc-freebsd %s -o - | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker@__stack_chk_guard = internal global [8 x i64] zeroinitializer, align 16
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine void @f() sspstrong {
7*9880d681SAndroid Build Coastguard Worker  %tbl = alloca [4 x i64], align 16
8*9880d681SAndroid Build Coastguard Worker  ret void
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker; CHECK:  movq  __stack_chk_guard(%rip), %rax
12*9880d681SAndroid Build Coastguard Worker; CHECK:  movq  __stack_chk_guard(%rip), %rax
13*9880d681SAndroid Build Coastguard Worker; CHECK:  .type __stack_chk_guard,@object
14*9880d681SAndroid Build Coastguard Worker; CHECK:  .local  __stack_chk_guard
15*9880d681SAndroid Build Coastguard Worker; CHECK:  .comm __stack_chk_guard,64,16
16