[llvm] aa8434f - [X86] Cleanup emulated TLS test checks. NFC
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 3 08:15:35 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-03T16:15:23+01:00
New Revision: aa8434fa3d1d8862d034a68ccf671f14ac4051cc
URL: https://github.com/llvm/llvm-project/commit/aa8434fa3d1d8862d034a68ccf671f14ac4051cc
DIFF: https://github.com/llvm/llvm-project/commit/aa8434fa3d1d8862d034a68ccf671f14ac4051cc.diff
LOG: [X86] Cleanup emulated TLS test checks. NFC
Added:
Modified:
llvm/test/CodeGen/X86/emutls.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/emutls.ll b/llvm/test/CodeGen/X86/emutls.ll
index 67e80a360c05..d11f65a188e1 100644
--- a/llvm/test/CodeGen/X86/emutls.ll
+++ b/llvm/test/CodeGen/X86/emutls.ll
@@ -25,6 +25,7 @@ define i32 @my_get_xyz() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
+;
; X64-LABEL: my_get_xyz:
; X64: movl $my_emutls_v_xyz, %edi
; X64-NEXT: callq my_emutls_get_address
@@ -32,7 +33,6 @@ define i32 @my_get_xyz() {
; X64-NEXT: popq %rcx
; X64-NEXT: .cfi_def_cfa_offset 8
; X64-NEXT: retq
-
entry:
%call = call i8* @my_emutls_get_address(i8* bitcast (i8** @my_emutls_v_xyz to i8*))
%0 = bitcast i8* %call to i32*
@@ -56,6 +56,7 @@ define i32 @f1() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
+;
; X64-LABEL: f1:
; X64: movl $__emutls_v.i1, %edi
; X64-NEXT: callq __emutls_get_address
@@ -63,7 +64,6 @@ define i32 @f1() {
; X64-NEXT: popq %rcx
; X64-NEXT: .cfi_def_cfa_offset 8
; X64-NEXT: retq
-
entry:
%tmp1 = load i32, i32* @i1
ret i32 %tmp1
@@ -76,13 +76,13 @@ define i32* @f2() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
+;
; X64-LABEL: f2:
; X64: movl $__emutls_v.i1, %edi
; X64-NEXT: callq __emutls_get_address
; X64-NEXT: popq %rcx
; X64-NEXT: .cfi_def_cfa_offset 8
; X64-NEXT: retq
-
entry:
ret i32* @i1
}
@@ -94,7 +94,6 @@ define i32 @f3() nounwind {
; X32-NEXT: movl (%eax), %eax
; X32-NEXT: addl $12, %esp
; X32-NEXT: retl
-
entry:
%tmp1 = load i32, i32* @i2
ret i32 %tmp1
@@ -107,7 +106,6 @@ define i32* @f4() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
-
entry:
ret i32* @i2
}
@@ -119,7 +117,6 @@ define i32 @f5() nounwind {
; X32-NEXT: movl (%eax), %eax
; X32-NEXT: addl $12, %esp
; X32-NEXT: retl
-
entry:
%tmp1 = load i32, i32* @i3
ret i32 %tmp1
@@ -132,7 +129,6 @@ define i32* @f6() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
-
entry:
ret i32* @i3
}
@@ -145,7 +141,6 @@ define i32 @f7() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
-
entry:
%tmp1 = load i32, i32* @i4
ret i32 %tmp1
@@ -158,7 +153,6 @@ define i32* @f8() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
-
entry:
ret i32* @i4
}
@@ -171,7 +165,6 @@ define i32 @f9() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
-
entry:
%tmp1 = load i32, i32* @i5
ret i32 %tmp1
@@ -184,7 +177,6 @@ define i32* @f10() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
-
entry:
ret i32* @i5
}
@@ -197,7 +189,6 @@ define i16 @f11() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
-
entry:
%tmp1 = load i16, i16* @s1
ret i16 %tmp1
@@ -211,7 +202,6 @@ define i32 @f12() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
-
entry:
%tmp1 = load i16, i16* @s1
%tmp2 = sext i16 %tmp1 to i32
@@ -226,7 +216,6 @@ define i8 @f13() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
-
entry:
%tmp1 = load i8, i8* @b1
ret i8 %tmp1
@@ -240,7 +229,6 @@ define i32 @f14() {
; X32-NEXT: addl $12, %esp
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
-
entry:
%tmp1 = load i8, i8* @b1
%tmp2 = sext i8 %tmp1 to i32
More information about the llvm-commits
mailing list