summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/2010-05-14-IllegalType.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-05-15 02:18:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-05-15 02:18:07 +0000
commit06b666c7056376b8aaf40be0dc00b97b2cfceb6c (patch)
treece9766d07085a010ddd890cd829b55f049697d93 /test/CodeGen/ARM/2010-05-14-IllegalType.ll
parent7092c2bfcb91c367b091e037f0568e249e1b0a57 (diff)
downloadllvm-06b666c7056376b8aaf40be0dc00b97b2cfceb6c.tar.gz
llvm-06b666c7056376b8aaf40be0dc00b97b2cfceb6c.tar.bz2
llvm-06b666c7056376b8aaf40be0dc00b97b2cfceb6c.tar.xz
Allow TargetLowering::getRegClassFor() to be called on illegal types. Also
allow target to override it in order to map register classes to illegal but synthesizable types. e.g. v4i64, v8i64 for ARM / NEON. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103854 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/2010-05-14-IllegalType.ll')
-rw-r--r--test/CodeGen/ARM/2010-05-14-IllegalType.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2010-05-14-IllegalType.ll b/test/CodeGen/ARM/2010-05-14-IllegalType.ll
new file mode 100644
index 0000000000..99e5b09df6
--- /dev/null
+++ b/test/CodeGen/ARM/2010-05-14-IllegalType.ll
@@ -0,0 +1,10 @@
+; RUN: llc -march=thumb -mcpu=cortex-a8 -mtriple=thumbv7-eabi -float-abi=hard < %s | FileCheck %s
+
+target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32-n32"
+target triple = "thumbv7-apple-darwin10"
+
+define <4 x i64> @f_4_i64(<4 x i64> %a, <4 x i64> %b) nounwind {
+; CHECK: vadd.i64
+ %y = add <4 x i64> %a, %b
+ ret <4 x i64> %y
+}