aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/addrspacecast.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/addrspacecast.ll')
-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
+}