[llvm] r305881 - Simplify test.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 20 23:42:56 PDT 2017
Author: rafael
Date: Wed Jun 21 01:42:56 2017
New Revision: 305881
URL: http://llvm.org/viewvc/llvm-project?rev=305881&view=rev
Log:
Simplify test.
Modified:
llvm/trunk/test/MC/ARM/elf-movt.s
Modified: llvm/trunk/test/MC/ARM/elf-movt.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/elf-movt.s?rev=305881&r1=305880&r2=305881&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/elf-movt.s (original)
+++ llvm/trunk/test/MC/ARM/elf-movt.s Wed Jun 21 01:42:56 2017
@@ -1,6 +1,6 @@
@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi | FileCheck -check-prefix=ASM %s
-@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi -filetype=obj -o - | \
-@ RUN: llvm-readobj -s -sd -sr | FileCheck -check-prefix=OBJ %s
+@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi -filetype=obj -o %t.o
+@ RUN: llvm-objdump -d -r %t.o -triple=armv7-linux-gnueabi | FileCheck -check-prefix=OBJ %s
.syntax unified
.text
.globl barf
@@ -14,41 +14,9 @@ barf:
@ ASM: movw r0, :lower16:(GOT-(.LPC0_2+8))
@ ASM-NEXT: movt r0, :upper16:(GOT-(.LPC0_2+8))
-@@ make sure that the text section fixups are sane too
-@ OBJ: Section {
-@ OBJ: Name: .text
-@ OBJ-NEXT: Type: SHT_PROGBITS
-@ OBJ-NEXT: Flags [ (0x6)
-@ OBJ-NEXT: SHF_ALLOC
-@ OBJ-NEXT: SHF_EXECINSTR
-@ OBJ-NEXT: ]
-@ OBJ-NEXT: Address: 0x0
-@ OBJ-NEXT: Offset: 0x34
-@ OBJ-NEXT: Size: 8
-@ OBJ-NEXT: Link: 0
-@ OBJ-NEXT: Info: 0
-@ OBJ-NEXT: AddressAlignment: 4
-@ OBJ-NEXT: EntrySize: 0
-@ OBJ-NEXT: Relocations [
-@ OBJ-NEXT: ]
-@ OBJ-NEXT: SectionData (
-@ OBJ-NEXT: 0000: F00F0FE3 F40F4FE3
-@ OBJ-NEXT: )
-@ OBJ-NEXT: }
-@ OBJ: Section {
-@ OBJ: Index:
-@ OBJ: Name: .rel.text
-@ OBJ-NEXT: Type: SHT_REL (0x9)
-@ OBJ-NEXT: Flags [ (0x0)
-@ OBJ-NEXT: ]
-@ OBJ-NEXT: Address: 0x0
-@ OBJ-NEXT: Offset:
-@ OBJ-NEXT: Size: 16
-@ OBJ-NEXT: Link:
-@ OBJ-NEXT: Info:
-@ OBJ-NEXT: AddressAlignment: 4
-@ OBJ-NEXT: EntrySize: 8
-@ OBJ-NEXT: Relocations [
-@ OBJ-NEXT: 0x0 R_ARM_MOVW_PREL_NC GOT 0x0
-@ OBJ-NEXT: 0x4 R_ARM_MOVT_PREL GOT 0x0
-@ OBJ-NEXT: ]
+ at OBJ: Disassembly of section .text:
+ at OBJ-NEXT: barf:
+ at OBJ-NEXT: 0: f0 0f 0f e3 movw r0, #65520
+ at OBJ-NEXT: 00000000: R_ARM_MOVW_PREL_NC GOT
+ at OBJ-NEXT: 4: f4 0f 4f e3 movt r0, #65524
+ at OBJ-NEXT: 00000004: R_ARM_MOVT_PREL GOT
More information about the llvm-commits
mailing list