diff options
Diffstat (limited to 'test/CodeGen/X86/stack-protector-target.ll')
-rw-r--r-- | test/CodeGen/X86/stack-protector-target.ll | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/test/CodeGen/X86/stack-protector-target.ll b/test/CodeGen/X86/stack-protector-target.ll index 66e45055b2b51..fc5a18d79d4b8 100644 --- a/test/CodeGen/X86/stack-protector-target.ll +++ b/test/CodeGen/X86/stack-protector-target.ll @@ -1,10 +1,17 @@ ; Test target-specific stack cookie location. -; RUN: llc -mtriple=i386-linux < %s -o - | FileCheck --check-prefix=LINUX-I386 %s -; RUN: llc -mtriple=x86_64-linux < %s -o - | FileCheck --check-prefix=LINUX-X64 %s -; RUN: llc -mtriple=i386-linux-android < %s -o - | FileCheck --check-prefix=LINUX-I386 %s -; RUN: llc -mtriple=x86_64-linux-android < %s -o - | FileCheck --check-prefix=LINUX-X64 %s -; RUN: llc -mtriple=i386-kfreebsd < %s -o - | FileCheck --check-prefix=LINUX-I386 %s -; RUN: llc -mtriple=x86_64-kfreebsd < %s -o - | FileCheck --check-prefix=LINUX-X64 %s +; RUN: llc -mtriple=i386-linux < %s -o - | FileCheck --check-prefix=I386-TLS %s +; RUN: llc -mtriple=x86_64-linux < %s -o - | FileCheck --check-prefix=X64-TLS %s + +; RUN: llc -mtriple=i386-linux-android < %s -o - | FileCheck --check-prefix=I386 %s +; RUN: llc -mtriple=i386-linux-android16 < %s -o - | FileCheck --check-prefix=I386 %s +; RUN: llc -mtriple=i386-linux-android17 < %s -o - | FileCheck --check-prefix=I386-TLS %s +; RUN: llc -mtriple=i386-linux-android24 < %s -o - | FileCheck --check-prefix=I386-TLS %s +; RUN: llc -mtriple=x86_64-linux-android < %s -o - | FileCheck --check-prefix=X64-TLS %s +; RUN: llc -mtriple=x86_64-linux-android17 < %s -o - | FileCheck --check-prefix=X64-TLS %s +; RUN: llc -mtriple=x86_64-linux-android24 < %s -o - | FileCheck --check-prefix=X64-TLS %s + +; RUN: llc -mtriple=i386-kfreebsd < %s -o - | FileCheck --check-prefix=I386-TLS %s +; RUN: llc -mtriple=x86_64-kfreebsd < %s -o - | FileCheck --check-prefix=X64-TLS %s define void @_Z1fv() sspreq { entry: @@ -16,12 +23,17 @@ entry: declare void @_Z7CapturePi(i32*) -; LINUX-X64: movq %fs:40, %[[B:.*]] -; LINUX-X64: movq %[[B]], 16(%rsp) -; LINUX-X64: movq %fs:40, %[[C:.*]] -; LINUX-X64: cmpq 16(%rsp), %[[C]] +; X64-TLS: movq %fs:40, %[[B:.*]] +; X64-TLS: movq %[[B]], 16(%rsp) +; X64-TLS: movq %fs:40, %[[C:.*]] +; X64-TLS: cmpq 16(%rsp), %[[C]] + +; I386: movl __stack_chk_guard, %[[B:.*]] +; I386: movl %[[B]], 8(%esp) +; I386: movl __stack_chk_guard, %[[C:.*]] +; I386: cmpl 8(%esp), %[[C]] -; LINUX-I386: movl %gs:20, %[[B:.*]] -; LINUX-I386: movl %[[B]], 8(%esp) -; LINUX-I386: movl %gs:20, %[[C:.*]] -; LINUX-I386: cmpl 8(%esp), %[[C]] +; I386-TLS: movl %gs:20, %[[B:.*]] +; I386-TLS: movl %[[B]], 8(%esp) +; I386-TLS: movl %gs:20, %[[C:.*]] +; I386-TLS: cmpl 8(%esp), %[[C]] |