brintos

brintos / llvm-project-archived public Read only

0
0
Text · 978 B · 4ba0302 Raw
29 lines · plain
1; Test target-specific stack cookie location.2; RUN: llc -mtriple=i386-linux < %s -o - | FileCheck --check-prefix=I386-TLS %s3; RUN: llc -mtriple=x86_64-linux < %s -o - | FileCheck --check-prefix=X64-TLS %s4 5; RUN: llc -mtriple=i386-linux-android < %s -o - | FileCheck --check-prefix=I386-TLS %s6; RUN: llc -mtriple=x86_64-linux-android < %s -o - | FileCheck --check-prefix=X64-TLS %s7 8; RUN: llc -mtriple=i386-kfreebsd < %s -o - | FileCheck --check-prefix=I386-TLS %s9; RUN: llc -mtriple=x86_64-kfreebsd < %s -o - | FileCheck --check-prefix=X64-TLS %s10 11define void @_Z1fv() sspreq {12entry:13  %x = alloca i32, align 414  call void @_Z7CapturePi(ptr nonnull %x)15  ret void16}17 18declare void @_Z7CapturePi(ptr)19 20; X64-TLS: movq %fs:40, %[[B:.*]]21; X64-TLS: movq %[[B]], 16(%rsp)22; X64-TLS: movq %fs:40, %[[C:.*]]23; X64-TLS: cmpq 16(%rsp), %[[C]]24 25; I386-TLS: movl %gs:20, %[[B:.*]]26; I386-TLS: movl %[[B]], 8(%esp)27; I386-TLS: movl %gs:20, %[[C:.*]]28; I386-TLS: cmpl 8(%esp), %[[C]]29