diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-11-10 04:30:40 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-11-10 04:30:40 +0000 |
commit | 785500618afc50f5914f798ea224cf8405dce29d (patch) | |
tree | 63a9c10ae5da4523b06aa5efdcffb46bc46e50f2 /test | |
parent | e29c88064fb11d630d00356ad8d340b9dca9ef77 (diff) | |
download | external_llvm-785500618afc50f5914f798ea224cf8405dce29d.zip external_llvm-785500618afc50f5914f798ea224cf8405dce29d.tar.gz external_llvm-785500618afc50f5914f798ea224cf8405dce29d.tar.bz2 |
Convert an improper CodeGen test to a MC test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Thumb/thumb_jump24_fixup.ll | 25 | ||||
-rw-r--r-- | test/MC/ARM/elf-jump24-fixup.s | 9 |
2 files changed, 9 insertions, 25 deletions
diff --git a/test/CodeGen/Thumb/thumb_jump24_fixup.ll b/test/CodeGen/Thumb/thumb_jump24_fixup.ll deleted file mode 100644 index 3f88449..0000000 --- a/test/CodeGen/Thumb/thumb_jump24_fixup.ll +++ /dev/null @@ -1,25 +0,0 @@ -; RUN: llc -mtriple thumbv7-none-linux-gnueabi -mcpu=cortex-a8 -march=thumb -mattr=thumb2 -filetype=obj -o - < %s | llvm-objdump -r - | FileCheck %s -; XFAIL: * - - -target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:32-n32-S64" -target triple = "thumbv7-none-linux-gnueabi" - -define i32 @test_fixup_t2_uncondbranch() { -b0: - invoke void @__cxa_throw(i8* null, i8* null, i8* null) noreturn - to label %unreachable unwind label %lpad - -; CHECK: {{[0-9]+}} R_ARM_THM_JUMP24 __cxa_throw - -lpad: - %0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) cleanup - ret i32 0 - -unreachable: - unreachable -} - -declare i32 @__gxx_personality_v0(...) - -declare void @__cxa_throw(i8*, i8*, i8*) diff --git a/test/MC/ARM/elf-jump24-fixup.s b/test/MC/ARM/elf-jump24-fixup.s new file mode 100644 index 0000000..75a4b86 --- /dev/null +++ b/test/MC/ARM/elf-jump24-fixup.s @@ -0,0 +1,9 @@ +@ RUN: llvm-mc %s -triple=thumbv7-linux-gnueabi -filetype=obj -o - < %s | llvm-objdump -r - | FileCheck %s + .syntax unified + .text + .code 16 + .thumb_func +foo: + b.w bar + +@ CHECK: {{[0-9]+}} R_ARM_THM_JUMP24 bar |