ARM: Additional test files for thumb fixups

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208691 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Christian Pirker 2014-05-13 11:50:39 +00:00
parent 0e0f907356
commit 3beea23c1b
3 changed files with 36 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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