From 821439c5063bc38befca9e7ee60f07cff7309003 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 17 Nov 2020 18:14:36 +0000 Subject: [PATCH] [X86] emutls-pic.ll - replace X32 check prefix with X86. NFC. We typically use X32 for gnux32 triples --- llvm/test/CodeGen/X86/emutls-pic.ll | 114 ++++++++++++++++++------------------ 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/llvm/test/CodeGen/X86/emutls-pic.ll b/llvm/test/CodeGen/X86/emutls-pic.ll index ef14c5c..66f226a 100644 --- a/llvm/test/CodeGen/X86/emutls-pic.ll +++ b/llvm/test/CodeGen/X86/emutls-pic.ll @@ -1,11 +1,11 @@ -; RUN: llc < %s -emulated-tls -mtriple=i386-linux-gnu -relocation-model=pic | FileCheck -check-prefix=X32 %s +; RUN: llc < %s -emulated-tls -mtriple=i386-linux-gnu -relocation-model=pic | FileCheck -check-prefix=X86 %s ; RUN: llc < %s -emulated-tls -mtriple=x86_64-linux-gnu -relocation-model=pic | FileCheck -check-prefix=X64 %s -; RUN: llc < %s -emulated-tls -mtriple=i386-linux-android -relocation-model=pic | FileCheck -check-prefix=X32 %s +; RUN: llc < %s -emulated-tls -mtriple=i386-linux-android -relocation-model=pic | FileCheck -check-prefix=X86 %s ; RUN: llc < %s -emulated-tls -mtriple=x86_64-linux-android -relocation-model=pic | FileCheck -check-prefix=X64 %s ; RUN: llc < %s -mtriple=i386-linux-gnu -relocation-model=pic | FileCheck -check-prefix=NoEMU %s ; RUN: llc < %s -mtriple=x86_64-linux-gnu -relocation-model=pic | FileCheck -check-prefix=NoEMU %s -; RUN: llc < %s -mtriple=i386-linux-android -relocation-model=pic | FileCheck -check-prefix=X32 %s +; RUN: llc < %s -mtriple=i386-linux-android -relocation-model=pic | FileCheck -check-prefix=X86 %s ; RUN: llc < %s -mtriple=x86_64-linux-android -relocation-model=pic | FileCheck -check-prefix=X64 %s ; NoEMU-NOT: __emutls @@ -15,10 +15,10 @@ declare i8* @my_emutls_get_address(i8*) define i32 @my_get_xyz() { -; X32-LABEL: my_get_xyz: -; X32: movl my_emutls_v_xyz@GOT(%ebx), %eax -; X32-NEXT: movl %eax, (%esp) -; X32-NEXT: calll my_emutls_get_address@PLT +; X86-LABEL: my_get_xyz: +; X86: movl my_emutls_v_xyz@GOT(%ebx), %eax +; X86-NEXT: movl %eax, (%esp) +; X86-NEXT: calll my_emutls_get_address@PLT ; X64-LABEL: my_get_xyz: ; X64: movq my_emutls_v_xyz@GOTPCREL(%rip), %rdi ; X64-NEXT: callq my_emutls_get_address@PLT @@ -41,10 +41,10 @@ entry: ret i32 %tmp1 } -; X32-LABEL: f1: -; X32: movl __emutls_v.i@GOT(%ebx), %eax -; X32-NEXT: movl %eax, (%esp) -; X32-NEXT: calll __emutls_get_address@PLT +; X86-LABEL: f1: +; X86: movl __emutls_v.i@GOT(%ebx), %eax +; X86-NEXT: movl %eax, (%esp) +; X86-NEXT: calll __emutls_get_address@PLT ; X64-LABEL: f1: ; X64: movq __emutls_v.i@GOTPCREL(%rip), %rdi ; X64-NEXT: callq __emutls_get_address@PLT @@ -57,7 +57,7 @@ entry: ret i32* @i } -; X32-LABEL: f2: +; X86-LABEL: f2: ; X64-LABEL: f2: @@ -67,7 +67,7 @@ entry: ret i32 %tmp1 } -; X32-LABEL: f3: +; X86-LABEL: f3: ; X64-LABEL: f3: @@ -76,7 +76,7 @@ entry: ret i32* @i } -; X32-LABEL: f4: +; X86-LABEL: f4: ; X64-LABEL: f4: @@ -88,16 +88,16 @@ entry: ret i32 %add } -; X32-LABEL: f5: -; X32: leal __emutls_v.j@GOTOFF(%ebx), %eax -; X32-NEXT: movl %eax, (%esp) -; X32-NEXT: calll __emutls_get_address@PLT -; X32-NEXT: movl (%eax), %esi -; X32-NEXT: leal __emutls_v.k@GOTOFF(%ebx), %eax -; X32-NEXT: movl %eax, (%esp) -; X32-NEXT: calll __emutls_get_address@PLT -; X32-NEXT: addl (%eax), %esi -; X32-NEXT: movl %esi, %eax +; X86-LABEL: f5: +; X86: leal __emutls_v.j@GOTOFF(%ebx), %eax +; X86-NEXT: movl %eax, (%esp) +; X86-NEXT: calll __emutls_get_address@PLT +; X86-NEXT: movl (%eax), %esi +; X86-NEXT: leal __emutls_v.k@GOTOFF(%ebx), %eax +; X86-NEXT: movl %eax, (%esp) +; X86-NEXT: calll __emutls_get_address@PLT +; X86-NEXT: addl (%eax), %esi +; X86-NEXT: movl %esi, %eax ; X64-LABEL: f5: ; X64: leaq __emutls_v.j(%rip), %rdi @@ -110,39 +110,39 @@ entry: ;;;;; 32-bit targets -; X32: .data{{$}} -; X32: .globl __emutls_v.i -; X32-LABEL: __emutls_v.i: -; X32-NEXT: .long 4 -; X32-NEXT: .long 4 -; X32-NEXT: .long 0 -; X32-NEXT: .long __emutls_t.i - -; X32: .section .rodata, -; X32-LABEL: __emutls_t.i: -; X32-NEXT: .long 15 - -; X32: .data{{$}} -; X32-NOT: .globl -; X32-LABEL: __emutls_v.j: -; X32-NEXT: .long 4 -; X32-NEXT: .long 4 -; X32-NEXT: .long 0 -; X32-NEXT: .long __emutls_t.j - -; X32: .section .rodata, -; X32-LABEL: __emutls_t.j: -; X32-NEXT: .long 42 - -; X32: .data{{$}} -; X32-NOT: .globl -; X32-LABEL: __emutls_v.k: -; X32-NEXT: .long 4 -; X32-NEXT: .long 8 -; X32-NEXT: .long 0 -; X32-NEXT: .long 0 - -; X32-NOT: __emutls_t.k: +; X86: .data{{$}} +; X86: .globl __emutls_v.i +; X86-LABEL: __emutls_v.i: +; X86-NEXT: .long 4 +; X86-NEXT: .long 4 +; X86-NEXT: .long 0 +; X86-NEXT: .long __emutls_t.i + +; X86: .section .rodata, +; X86-LABEL: __emutls_t.i: +; X86-NEXT: .long 15 + +; X86: .data{{$}} +; X86-NOT: .globl +; X86-LABEL: __emutls_v.j: +; X86-NEXT: .long 4 +; X86-NEXT: .long 4 +; X86-NEXT: .long 0 +; X86-NEXT: .long __emutls_t.j + +; X86: .section .rodata, +; X86-LABEL: __emutls_t.j: +; X86-NEXT: .long 42 + +; X86: .data{{$}} +; X86-NOT: .globl +; X86-LABEL: __emutls_v.k: +; X86-NEXT: .long 4 +; X86-NEXT: .long 8 +; X86-NEXT: .long 0 +; X86-NEXT: .long 0 + +; X86-NOT: __emutls_t.k: ;;;;; 64-bit targets -- 2.7.4