summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/ARM')
-rw-r--r--llvm/test/CodeGen/ARM/fast-isel-shift-materialize.ll2
-rw-r--r--llvm/test/CodeGen/ARM/macho-trap.ll10
2 files changed, 11 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/ARM/fast-isel-shift-materialize.ll b/llvm/test/CodeGen/ARM/fast-isel-shift-materialize.ll
index ab36a979d71..6ecaaa99b83 100644
--- a/llvm/test/CodeGen/ARM/fast-isel-shift-materialize.ll
+++ b/llvm/test/CodeGen/ARM/fast-isel-shift-materialize.ll
@@ -19,7 +19,7 @@ bb:
%tmp4 = lshr i32 %tmp3, 2
%tmp10 = lshr i32 %tmp9, 2
call void @foo(i32 %tmp10, i32 %tmp4)
- unreachable
+ ret i32 undef
}
attributes #0 = { minsize }
diff --git a/llvm/test/CodeGen/ARM/macho-trap.ll b/llvm/test/CodeGen/ARM/macho-trap.ll
new file mode 100644
index 00000000000..34417aa88f5
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/macho-trap.ll
@@ -0,0 +1,10 @@
+; RUN: llc -mtriple=armv7-apple-ios7.0 %s -o - | FileCheck %s
+; RUN: llc -mtriple=thumbv7-apple-ios7.0 %s -o - | FileCheck %s
+; RUN: llc -mtriple=thumbv7m-apple-macho %s -o - | FileCheck %s
+; RUN: llc -mtriple=thumbv6m-apple-macho %s -o - | FileCheck %s
+
+define void @test_unreachable() {
+; CHECK-LABEL: test_unreachable:
+; CHECK: trap
+ unreachable
+}
OpenPOWER on IntegriCloud