[llvm] ba82e7e - [X86] emutls-pie.ll - replace X32 check prefix with X86. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 17 10:34:14 PST 2020
Author: Simon Pilgrim
Date: 2020-11-17T18:32:43Z
New Revision: ba82e7ee5c0c7431bfba2da281aeb5fcf2ac5969
URL: https://github.com/llvm/llvm-project/commit/ba82e7ee5c0c7431bfba2da281aeb5fcf2ac5969
DIFF: https://github.com/llvm/llvm-project/commit/ba82e7ee5c0c7431bfba2da281aeb5fcf2ac5969.diff
LOG: [X86] emutls-pie.ll - replace X32 check prefix with X86. NFC.
We typically use X32 for gnux32 triples
Added:
Modified:
llvm/test/CodeGen/X86/emutls-pie.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/emutls-pie.ll b/llvm/test/CodeGen/X86/emutls-pie.ll
index 904196e750a3..1f1fe640016b 100644
--- a/llvm/test/CodeGen/X86/emutls-pie.ll
+++ b/llvm/test/CodeGen/X86/emutls-pie.ll
@@ -1,9 +1,9 @@
; RUN: llc < %s -emulated-tls -mcpu=generic -mtriple=i386-linux-gnu -relocation-model=pic \
-; RUN: | FileCheck -check-prefix=X32 %s
+; RUN: | FileCheck -check-prefix=X86 %s
; RUN: llc < %s -emulated-tls -mcpu=generic -mtriple=x86_64-linux-gnu -relocation-model=pic \
; RUN: | FileCheck -check-prefix=X64 %s
; RUN: llc < %s -emulated-tls -mcpu=generic -mtriple=i386-linux-android -relocation-model=pic \
-; RUN: | FileCheck -check-prefix=X32 %s
+; RUN: | FileCheck -check-prefix=X86 %s
; RUN: llc < %s -emulated-tls -mcpu=generic -mtriple=x86_64-linux-android -relocation-model=pic \
; RUN: | FileCheck -check-prefix=X64 %s
@@ -12,7 +12,7 @@
; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux-gnu -relocation-model=pic \
; RUN: | FileCheck -check-prefix=NoEMU %s
; RUN: llc < %s -mcpu=generic -mtriple=i386-linux-android -relocation-model=pic \
-; RUN: | FileCheck -check-prefix=X32 %s
+; RUN: | FileCheck -check-prefix=X86 %s
; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux-android -relocation-model=pic \
; RUN: | FileCheck -check-prefix=X64 %s
@@ -23,16 +23,16 @@
declare i8* @my_emutls_get_address(i8*)
define i32 @my_get_xyz() {
-; X32-LABEL: my_get_xyz:
-; X32: movl my_emutls_v_xyz at GOT(%ebx), %eax
-; X32-NEXT: movl %eax, (%esp)
-; X32-NEXT: calll my_emutls_get_address at PLT
-; X32-NEXT: movl (%eax), %eax
-; X32-NEXT: addl $8, %esp
-; X32-NEXT: .cfi_def_cfa_offset 8
-; X32-NEXT: popl %ebx
-; X32-NEXT: .cfi_def_cfa_offset 4
-; X32-NEXT: retl
+; X86-LABEL: my_get_xyz:
+; X86: movl my_emutls_v_xyz at GOT(%ebx), %eax
+; X86-NEXT: movl %eax, (%esp)
+; X86-NEXT: calll my_emutls_get_address at PLT
+; X86-NEXT: movl (%eax), %eax
+; X86-NEXT: addl $8, %esp
+; X86-NEXT: .cfi_def_cfa_offset 8
+; X86-NEXT: popl %ebx
+; X86-NEXT: .cfi_def_cfa_offset 4
+; X86-NEXT: retl
; X64-LABEL: my_get_xyz:
; X64: movq my_emutls_v_xyz at GOTPCREL(%rip), %rdi
; X64-NEXT: callq my_emutls_get_address at PLT
@@ -52,16 +52,16 @@ entry:
@i2 = external thread_local global i32
define i32 @f1() {
-; X32-LABEL: f1:
-; X32: leal __emutls_v.i at GOTOFF(%ebx), %eax
-; X32-NEXT: movl %eax, (%esp)
-; X32-NEXT: calll __emutls_get_address at PLT
-; X32-NEXT: movl (%eax), %eax
-; X32-NEXT: addl $8, %esp
-; X32-NEXT: .cfi_def_cfa_offset 8
-; X32-NEXT: popl %ebx
-; X32-NEXT: .cfi_def_cfa_offset 4
-; X32-NEXT: retl
+; X86-LABEL: f1:
+; X86: leal __emutls_v.i at GOTOFF(%ebx), %eax
+; X86-NEXT: movl %eax, (%esp)
+; X86-NEXT: calll __emutls_get_address at PLT
+; X86-NEXT: movl (%eax), %eax
+; X86-NEXT: addl $8, %esp
+; X86-NEXT: .cfi_def_cfa_offset 8
+; X86-NEXT: popl %ebx
+; X86-NEXT: .cfi_def_cfa_offset 4
+; X86-NEXT: retl
; X64-LABEL: f1:
; X64: leaq __emutls_v.i(%rip), %rdi
; X64-NEXT: callq __emutls_get_address at PLT
@@ -76,10 +76,10 @@ entry:
}
define i32* @f2() {
-; X32-LABEL: f2:
-; X32: leal __emutls_v.i at GOTOFF(%ebx), %eax
-; X32-NEXT: movl %eax, (%esp)
-; X32-NEXT: calll __emutls_get_address at PLT
+; X86-LABEL: f2:
+; X86: leal __emutls_v.i at GOTOFF(%ebx), %eax
+; X86-NEXT: movl %eax, (%esp)
+; X86-NEXT: calll __emutls_get_address at PLT
; X64-LABEL: f2:
; X64: leaq __emutls_v.i(%rip), %rdi
; X64-NEXT: callq __emutls_get_address at PLT
@@ -89,10 +89,10 @@ entry:
}
define i32 @f3() {
-; X32-LABEL: f3:
-; X32: movl __emutls_v.i2 at GOT(%ebx), %eax
-; X32-NEXT: movl %eax, (%esp)
-; X32-NEXT: calll __emutls_get_address at PLT
+; X86-LABEL: f3:
+; X86: movl __emutls_v.i2 at GOT(%ebx), %eax
+; X86-NEXT: movl %eax, (%esp)
+; X86-NEXT: calll __emutls_get_address at PLT
; X64-LABEL: f3:
; X64: movq __emutls_v.i2 at GOTPCREL(%rip), %rdi
; X64-NEXT: callq __emutls_get_address at PLT
@@ -103,10 +103,10 @@ entry:
}
define i32* @f4() {
-; X32-LABEL: f4:
-; X32: movl __emutls_v.i2 at GOT(%ebx), %eax
-; X32-NEXT: movl %eax, (%esp)
-; X32-NEXT: calll __emutls_get_address at PLT
+; X86-LABEL: f4:
+; X86: movl __emutls_v.i2 at GOT(%ebx), %eax
+; X86-NEXT: movl %eax, (%esp)
+; X86-NEXT: calll __emutls_get_address at PLT
; X64-LABEL: f4:
; X64: movq __emutls_v.i2 at GOTPCREL(%rip), %rdi
; X64-NEXT: callq __emutls_get_address at PLT
@@ -117,19 +117,19 @@ entry:
;;;;; 32-bit targets
-; X32: .data
-; X32-LABEL: __emutls_v.i:
-; X32-NEXT: .long 4
-; X32-NEXT: .long 4
-; X32-NEXT: .long 0
-; X32-NEXT: .long __emutls_t.i
+; X86: .data
+; X86-LABEL: __emutls_v.i:
+; X86-NEXT: .long 4
+; X86-NEXT: .long 4
+; X86-NEXT: .long 0
+; X86-NEXT: .long __emutls_t.i
-; X32: .section .rodata,
-; X32-LABEL: __emutls_t.i:
-; X32-NEXT: .long 15
+; X86: .section .rodata,
+; X86-LABEL: __emutls_t.i:
+; X86-NEXT: .long 15
-; X32-NOT: __emutls_v.i2
-; X32-NOT: __emutls_t.i2
+; X86-NOT: __emutls_v.i2
+; X86-NOT: __emutls_t.i2
;;;;; 64-bit targets
More information about the llvm-commits
mailing list