[llvm] f542497 - [test] Simplify MC/PowerPC/ppc32-R_PPC_DTPREL32-reloc.s after D156953

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 9 12:59:39 PDT 2023


Author: Fangrui Song
Date: 2023-08-09T12:59:34-07:00
New Revision: f542497182851ea1d8f4689a402238c78c42b40a

URL: https://github.com/llvm/llvm-project/commit/f542497182851ea1d8f4689a402238c78c42b40a
DIFF: https://github.com/llvm/llvm-project/commit/f542497182851ea1d8f4689a402238c78c42b40a.diff

LOG: [test] Simplify MC/PowerPC/ppc32-R_PPC_DTPREL32-reloc.s after D156953

Apply a review comment from me that is unaddressed.

Added: 
    

Modified: 
    llvm/test/MC/PowerPC/ppc32-R_PPC_DTPREL32-reloc.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/PowerPC/ppc32-R_PPC_DTPREL32-reloc.s b/llvm/test/MC/PowerPC/ppc32-R_PPC_DTPREL32-reloc.s
index 88813b072ccc04..402a9a5068d272 100644
--- a/llvm/test/MC/PowerPC/ppc32-R_PPC_DTPREL32-reloc.s
+++ b/llvm/test/MC/PowerPC/ppc32-R_PPC_DTPREL32-reloc.s
@@ -1,50 +1,15 @@
 # RUN: llvm-mc -filetype=obj -triple=ppc %s -o %t
 # RUN: llvm-readelf -r %t | FileCheck %s 
 
-# CHECK: Relocation section '.rela.debug_info' at offset 0xf8 contains 1 entries:
+# CHECK: Relocation section '.rela.debug_info' at offset {{.*}} contains 1 entries:
 # CHECK-NEXT: Offset     Info    Type                Sym. Value  Symbol's Name + Addend
-# CHECK-NEXT: 00000000  0000024e R_PPC_DTPREL32         00000000   tls_rtp_var + 8000
+# CHECK-NEXT: 00000000  0000014e R_PPC_DTPREL32         00000000   tls_rtp_var + 8000
 
-	.text
-	.globl	foo                             # -- Begin function foo
-	.p2align	2
-	.type	foo, at function
-foo:                                    # @foo
-# %bb.0:                                # %entry
-	stwu 1, -16(1)
-	stw 31, 12(1)
-	mr	31, 1
-	addis 3, 2, tls_rtp_var at tprel@ha
-	addi 4, 3, tls_rtp_var at tprel@l
-	lwz 3, 0(4)
-	addi 3, 3, 1
-	stw 3, 0(4)
-	lis 4, my_global_var at ha
-	lwz 3, my_global_var at l(4)
-	addi 3, 3, 1
-	stw 3, my_global_var at l(4)
-	lwz 31, 12(1)
-	addi 1, 1, 16
-	blr
+	.section	.debug_info,"", at progbits
+## Used by DW_OP_form_tls_address and DW_OP_GNU_push_tls_address.
+	.long	tls_rtp_var at DTPREL+32768
 
-	.type	tls_rtp_var, at object             # @tls_rtp_var
 	.section	.tdata,"awT", at progbits
 	.globl	tls_rtp_var
-	.p2align	2, 0x0
 tls_rtp_var:
-	.long	5                               # 0x5
-	.size	tls_rtp_var, 4
-
-	.type	my_global_var, at object           # @my_global_var
-	.data
-	.globl	my_global_var
-	.p2align	2, 0x0
-my_global_var:
-	.long	7                               # 0x7
-	.size	my_global_var, 4
-
-	.section	.debug_info,"", at progbits
-.Lcu_begin0:
-.Ldebug_info_start0:
-	.long	tls_rtp_var at DTPREL+32768
-.Ldebug_info_end0:
+	.long	5


        


More information about the llvm-commits mailing list