[llvm] r208691 - ARM: Additional test files for thumb fixups
Christian Pirker
cpirker at a-bix.com
Tue May 13 04:50:39 PDT 2014
Author: cpirker
Date: Tue May 13 06:50:39 2014
New Revision: 208691
URL: http://llvm.org/viewvc/llvm-project?rev=208691&view=rev
Log:
ARM: Additional test files for thumb fixups
Added:
llvm/trunk/test/MC/ARM/thumb2be-beq.w-encoding.s
llvm/trunk/test/MC/ARM/thumb2be-movt-encoding.s
llvm/trunk/test/MC/ARM/thumb2be-movw-encoding.s
Added: llvm/trunk/test/MC/ARM/thumb2be-beq.w-encoding.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/thumb2be-beq.w-encoding.s?rev=208691&view=auto
==============================================================================
--- llvm/trunk/test/MC/ARM/thumb2be-beq.w-encoding.s (added)
+++ llvm/trunk/test/MC/ARM/thumb2be-beq.w-encoding.s Tue May 13 06:50:39 2014
@@ -0,0 +1,12 @@
+// RUN: llvm-mc -triple=thumbv7-none-linux-gnueabi -mcpu=cortex-a8 -filetype=obj < %s | llvm-objdump -arch=thumb -s - | FileCheck %s --check-prefix=CHECK-LE
+// RUN: llvm-mc -triple=thumbebv7-none-linux-gnueabi -mcpu=cortex-a8 -filetype=obj < %s | llvm-objdump -arch=thumbeb -s - | FileCheck %s --check-prefix=CHECK-BE
+ .syntax unified
+ .code 16
+ .thumb_func
+foo:
+ beq.w bar
+
+// CHECK-LE: Contents of section .text:
+// CHECK-LE-NEXT: 0000 3ff4feaf
+// CHECK-BE: Contents of section .text:
+// CHECK-BE-NEXT: 0000 f43faffe
Added: llvm/trunk/test/MC/ARM/thumb2be-movt-encoding.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/thumb2be-movt-encoding.s?rev=208691&view=auto
==============================================================================
--- llvm/trunk/test/MC/ARM/thumb2be-movt-encoding.s (added)
+++ llvm/trunk/test/MC/ARM/thumb2be-movt-encoding.s Tue May 13 06:50:39 2014
@@ -0,0 +1,12 @@
+// RUN: llvm-mc -triple=thumbv7-none-linux-gnueabi -mcpu=cortex-a8 -filetype=obj < %s | llvm-objdump -arch=thumb -s - | FileCheck %s --check-prefix=CHECK-LE
+// RUN: llvm-mc -triple=thumbebv7-none-linux-gnueabi -mcpu=cortex-a8 -filetype=obj < %s | llvm-objdump -arch=thumbeb -s - | FileCheck %s --check-prefix=CHECK-BE
+ .syntax unified
+ .code 16
+ .thumb_func
+foo:
+ movt r9, :upper16:(_bar)
+
+// CHECK-LE: Contents of section .text:
+// CHECK-LE-NEXT: 0000 c0f20009
+// CHECK-BE: Contents of section .text:
+// CHECK-BE-NEXT: 0000 f2c00900
Added: llvm/trunk/test/MC/ARM/thumb2be-movw-encoding.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/thumb2be-movw-encoding.s?rev=208691&view=auto
==============================================================================
--- llvm/trunk/test/MC/ARM/thumb2be-movw-encoding.s (added)
+++ llvm/trunk/test/MC/ARM/thumb2be-movw-encoding.s Tue May 13 06:50:39 2014
@@ -0,0 +1,12 @@
+// RUN: llvm-mc -triple=thumbv7-none-linux-gnueabi -mcpu=cortex-a8 -filetype=obj < %s | llvm-objdump -arch=thumb -s - | FileCheck %s --check-prefix=CHECK-LE
+// RUN: llvm-mc -triple=thumbebv7-none-linux-gnueabi -mcpu=cortex-a8 -filetype=obj < %s | llvm-objdump -arch=thumbeb -s - | FileCheck %s --check-prefix=CHECK-BE
+ .syntax unified
+ .code 16
+ .thumb_func
+foo:
+ movw r9, :lower16:(_bar)
+
+// CHECK-LE: Contents of section .text:
+// CHECK-LE-NEXT: 0000 40f20009
+// CHECK-BE: Contents of section .text:
+// CHECK-BE-NEXT: 0000 f2400900
More information about the llvm-commits
mailing list