[lld] r362235 - [PPC64][test] Delete redundant labels from ppc64-relocs.s

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 08:41:19 PDT 2019


Author: maskray
Date: Fri May 31 08:41:19 2019
New Revision: 362235

URL: http://llvm.org/viewvc/llvm-project?rev=362235&view=rev
Log:
[PPC64][test] Delete redundant labels from ppc64-relocs.s

Modified:
    lld/trunk/test/ELF/ppc64-relocs.s

Modified: lld/trunk/test/ELF/ppc64-relocs.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-relocs.s?rev=362235&r1=362234&r2=362235&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-relocs.s (original)
+++ lld/trunk/test/ELF/ppc64-relocs.s Fri May 31 08:41:19 2019
@@ -30,142 +30,86 @@ _start:
         .tc .LJTI0_0[TC],.LJTI0_0
 
 .section .R_PPC64_TOC16_LO_DS,"ax", at progbits
-.globl .FR_PPC64_TOC16_LO_DS
-.FR_PPC64_TOC16_LO_DS:
   ld 1, .L1 at toc@l(2)
 
-# CHECK: Disassembly of section .R_PPC64_TOC16_LO_DS:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_TOC16_LO_DS:
+# CHECK-LABEL: Disassembly of section .R_PPC64_TOC16_LO_DS:
 # CHECK: 1001000c:       ld 1, -32768(2)
 
 .section .R_PPC64_TOC16_LO,"ax", at progbits
-.globl .FR_PPC64_TOC16_LO
-.FR_PPC64_TOC16_LO:
   addi  1, 2, .L1 at toc@l
 
-# CHECK: Disassembly of section .R_PPC64_TOC16_LO:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_TOC16_LO:
+# CHECK-LABEL: Disassembly of section .R_PPC64_TOC16_LO:
 # CHECK: 10010010:       addi 1, 2, -32768
 
 .section .R_PPC64_TOC16_HI,"ax", at progbits
-.globl .FR_PPC64_TOC16_HI
-.FR_PPC64_TOC16_HI:
   addis 1, 2, .L1 at toc@h
 
-# CHECK: Disassembly of section .R_PPC64_TOC16_HI:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_TOC16_HI:
+# CHECK-LABEL: Disassembly of section .R_PPC64_TOC16_HI:
 # CHECK: 10010014:       addis 1, 2, -1
 
 .section .R_PPC64_TOC16_HA,"ax", at progbits
-.globl .FR_PPC64_TOC16_HA
-.FR_PPC64_TOC16_HA:
   addis 1, 2, .L1 at toc@ha
 
-# CHECK: Disassembly of section .R_PPC64_TOC16_HA:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_TOC16_HA:
+# CHECK-LABEL: Disassembly of section .R_PPC64_TOC16_HA:
 # CHECK: 10010018:       addis 1, 2, 0
 
 .section .R_PPC64_REL24,"ax", at progbits
-.globl .FR_PPC64_REL24
-.FR_PPC64_REL24:
-  b .Lfoox
-.section .R_PPC64_REL24_2,"ax", at progbits
-.Lfoox:
-
-# CHECK: Disassembly of section .R_PPC64_REL24:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_REL24:
+  b 1f
+1:
+
+# CHECK-LABEL: Disassembly of section .R_PPC64_REL24:
 # CHECK: 1001001c:       b .+4
 
 .section .R_PPC64_REL14,"ax", at progbits
-.globl .FR_PPC64_REL14
-.FR_PPC64_REL14:
-  beq .Lfooy
-.section .R_PPC64_REL14_2,"ax", at progbits
-.Lfooy:
-
-# CHECK: Disassembly of section .R_PPC64_REL14:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_REL14:
+  beq 1f
+1:
+
+# CHECK-LABEL: Disassembly of section .R_PPC64_REL14:
 # CHECK: 10010020:       bt 2, .+4
 
 .section .R_PPC64_ADDR16_LO,"ax", at progbits
-.globl .FR_PPC64_ADDR16_LO
-.FR_PPC64_ADDR16_LO:
   li 1, .Lfoo at l
 
-# CHECK: Disassembly of section .R_PPC64_ADDR16_LO:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_ADDR16_LO:
+# CHECK-LABEL: Disassembly of section .R_PPC64_ADDR16_LO:
 # CHECK: 10010024:       li 1, 0
 
 .section .R_PPC64_ADDR16_HI,"ax", at progbits
-.globl .FR_PPC64_ADDR16_HI
-.FR_PPC64_ADDR16_HI:
   li 1, .Lfoo at h
 
-# CHECK: Disassembly of section .R_PPC64_ADDR16_HI:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_ADDR16_HI:
+# CHECK-LABEL: Disassembly of section .R_PPC64_ADDR16_HI:
 # CHECK: 10010028:       li 1, 4097
 
 .section .R_PPC64_ADDR16_HA,"ax", at progbits
-.globl .FR_PPC64_ADDR16_HA
-.FR_PPC64_ADDR16_HA:
   li 1, .Lfoo at ha
 
-# CHECK: Disassembly of section .R_PPC64_ADDR16_HA:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_ADDR16_HA:
+# CHECK-LABEL: Disassembly of section .R_PPC64_ADDR16_HA:
 # CHECK: 1001002c:       li 1, 4097
 
 .section .R_PPC64_ADDR16_HIGHER,"ax", at progbits
-.globl .FR_PPC64_ADDR16_HIGHER
-.FR_PPC64_ADDR16_HIGHER:
   li 1, .Lfoo at higher
 
-# CHECK: Disassembly of section .R_PPC64_ADDR16_HIGHER:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_ADDR16_HIGHER:
+# CHECK-LABEL: Disassembly of section .R_PPC64_ADDR16_HIGHER:
 # CHECK: 10010030:       li 1, 0
 
 .section .R_PPC64_ADDR16_HIGHERA,"ax", at progbits
-.globl .FR_PPC64_ADDR16_HIGHERA
-.FR_PPC64_ADDR16_HIGHERA:
   li 1, .Lfoo at highera
 
-# CHECK: Disassembly of section .R_PPC64_ADDR16_HIGHERA:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_ADDR16_HIGHERA:
+# CHECK-LABEL: Disassembly of section .R_PPC64_ADDR16_HIGHERA:
 # CHECK: 10010034:       li 1, 0
 
 .section .R_PPC64_ADDR16_HIGHEST,"ax", at progbits
-.globl .FR_PPC64_ADDR16_HIGHEST
-.FR_PPC64_ADDR16_HIGHEST:
   li 1, .Lfoo at highest
 
-# CHECK: Disassembly of section .R_PPC64_ADDR16_HIGHEST:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_ADDR16_HIGHEST:
+# CHECK-LABEL: Disassembly of section .R_PPC64_ADDR16_HIGHEST:
 # CHECK: 10010038:       li 1, 0
 
 .section .R_PPC64_ADDR16_HIGHESTA,"ax", at progbits
-.globl .FR_PPC64_ADDR16_HIGHESTA
-.FR_PPC64_ADDR16_HIGHESTA:
   li 1, .Lfoo at highesta
 
-# CHECK: Disassembly of section .R_PPC64_ADDR16_HIGHESTA:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_ADDR16_HIGHESTA:
+# CHECK-LABEL: Disassembly of section .R_PPC64_ADDR16_HIGHESTA:
 # CHECK: 1001003c:       li 1, 0
 
 .section  .R_PPC64_REL32, "ax", at progbits
-.globl .FR_PPC64_REL32
-.FR_PPC64_REL32:
   addis 5, 2, .LC0 at toc@ha
   ld 5, .LC0 at toc@l(5)
 .LBB0_2:
@@ -180,16 +124,12 @@ _start:
 # Address of rodata + value stored at rodata entry
 # should equal address of LBB0_2.
 # 0x10000190 + 0xfeb4 = 0x10010044
-# CHECK: Disassembly of section .R_PPC64_REL32:
-# CHECK-EMPTY:
-# CHECK: .FR_PPC64_REL32:
+# CHECK-LABEL: Disassembly of section .R_PPC64_REL32:
 # CHECK: 10010040:       addis 5, 2, 0
 # CHECK: 10010044:       ld 5, -32736(5)
 # CHECK: 10010048:       add 3, 3, 4
 
 .section .R_PPC64_REL64, "ax", at progbits
-.globl  .FR_PPC64_REL64
-.FR_PPC64_REL64:
         .cfi_startproc
         .cfi_personality 148, __foo
         li 0, 1




More information about the llvm-commits mailing list