[llvm] r305976 - Also test thumb.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 17:44:06 PDT 2017
Author: rafael
Date: Wed Jun 21 19:44:05 2017
New Revision: 305976
URL: http://llvm.org/viewvc/llvm-project?rev=305976&view=rev
Log:
Also test thumb.
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=305976&r1=305975&r2=305976&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/elf-movt.s (original)
+++ llvm/trunk/test/MC/ARM/elf-movt.s Wed Jun 21 19:44:05 2017
@@ -1,6 +1,9 @@
@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi | FileCheck -check-prefix=ASM %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
+@ RUN: llvm-objdump -d -r %t.o -triple=armv7-linux-gnueabi | FileCheck -check-prefix=OBJ %s
+@ RUN: llvm-mc %s -triple=thumbv7-linux-gnueabi -filetype=obj -o %t.o
+@ RUN: llvm-objdump -d -r %t.o -triple=thumbv7-linux-gnueabi | FileCheck -check-prefix=THUMB %s
+
.syntax unified
.text
.globl barf
@@ -20,3 +23,10 @@ barf:
@OBJ-NEXT: 00000000: R_ARM_MOVW_PREL_NC GOT
@OBJ-NEXT: 4: f4 0f 4f e3 movt r0, #65524
@OBJ-NEXT: 00000004: R_ARM_MOVT_PREL GOT
+
+ at THUMB: Disassembly of section .text:
+ at THUMB-NEXT: barf:
+ at THUMB-NEXT: 0: 4f f6 f0 70 movw r0, #65520
+ at THUMB-NEXT: 00000000: R_ARM_THM_MOVW_PREL_NC GOT
+ at THUMB-NEXT: 4: cf f6 f4 70 movt r0, #65524
+ at THUMB-NEXT: 00000004: R_ARM_THM_MOVT_PREL GOT
More information about the llvm-commits
mailing list