aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-12-07 09:36:35 +0000
committerBill Wendling <isanbard@gmail.com>2013-12-07 09:36:35 +0000
commit31928dfc03d92322f9f2fb1c4a7878024d3cc9d1 (patch)
treefc59138e75c83f532db6534d2f24eb5a84aa1954 /test
parentc217165f1325358669ea5bdb6adfcaeb0c2ac291 (diff)
downloadexternal_llvm-31928dfc03d92322f9f2fb1c4a7878024d3cc9d1.zip
external_llvm-31928dfc03d92322f9f2fb1c4a7878024d3cc9d1.tar.gz
external_llvm-31928dfc03d92322f9f2fb1c4a7878024d3cc9d1.tar.bz2
Merging r196269:
------------------------------------------------------------------------ r196269 | jamesm | 2013-12-03 03:23:11 -0800 (Tue, 03 Dec 2013) | 5 lines Addrspacecasts are no-ops on ARM. Testcase added. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@196651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/addrspacecast.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/addrspacecast.ll b/test/CodeGen/ARM/addrspacecast.ll
new file mode 100644
index 0000000..2e98ba5
--- /dev/null
+++ b/test/CodeGen/ARM/addrspacecast.ll
@@ -0,0 +1,7 @@
+; RUN: llc < %s -march=arm
+
+; Check that codegen for an addrspace cast succeeds without error.
+define <4 x i32 addrspace(1)*> @f (<4 x i32*> %x) {
+ %1 = addrspacecast <4 x i32*> %x to <4 x i32 addrspace(1)*>
+ ret <4 x i32 addrspace(1)*> %1
+}