aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/div.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-08-11 07:17:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-08-11 07:17:46 +0000
commit7b4d31176efe6894bcfaa05257dd5783acda5ddc (patch)
treede0b529d4c27ad838d16439ad33a01379342b6a0 /test/CodeGen/ARM/div.ll
parent8d62e713ea8c1597cc81da029a79925cbb125f4c (diff)
downloadexternal_llvm-7b4d31176efe6894bcfaa05257dd5783acda5ddc.zip
external_llvm-7b4d31176efe6894bcfaa05257dd5783acda5ddc.tar.gz
external_llvm-7b4d31176efe6894bcfaa05257dd5783acda5ddc.tar.bz2
Report error if codegen tries to instantiate a ARM target when the cpu does support it. e.g. cortex-m* processors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/div.ll')
-rw-r--r--test/CodeGen/ARM/div.ll10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/CodeGen/ARM/div.ll b/test/CodeGen/ARM/div.ll
index d833afa..448b437 100644
--- a/test/CodeGen/ARM/div.ll
+++ b/test/CodeGen/ARM/div.ll
@@ -1,13 +1,9 @@
; RUN: llc < %s -march=arm | FileCheck %s -check-prefix=CHECK-ARM
-; RUN: llc < %s -march=arm -mcpu=cortex-m3 \
-; RUN: | FileCheck %s -check-prefix=CHECK-ARMV7M
define i32 @f1(i32 %a, i32 %b) {
entry:
; CHECK-ARM: f1
; CHECK-ARM: __divsi3
-; CHECK-ARMV7M: f1
-; CHECK-ARMV7M: sdiv
%tmp1 = sdiv i32 %a, %b ; <i32> [#uses=1]
ret i32 %tmp1
}
@@ -16,8 +12,6 @@ define i32 @f2(i32 %a, i32 %b) {
entry:
; CHECK-ARM: f2
; CHECK-ARM: __udivsi3
-; CHECK-ARMV7M: f2
-; CHECK-ARMV7M: udiv
%tmp1 = udiv i32 %a, %b ; <i32> [#uses=1]
ret i32 %tmp1
}
@@ -26,8 +20,6 @@ define i32 @f3(i32 %a, i32 %b) {
entry:
; CHECK-ARM: f3
; CHECK-ARM: __modsi3
-; CHECK-ARMV7M: f3
-; CHECK-ARMV7M: sdiv
%tmp1 = srem i32 %a, %b ; <i32> [#uses=1]
ret i32 %tmp1
}
@@ -36,8 +28,6 @@ define i32 @f4(i32 %a, i32 %b) {
entry:
; CHECK-ARM: f4
; CHECK-ARM: __umodsi3
-; CHECK-ARMV7M: f4
-; CHECK-ARMV7M: udiv
%tmp1 = urem i32 %a, %b ; <i32> [#uses=1]
ret i32 %tmp1
}