1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/CodeGen/ARM/addrspacecast.ll
James Molloy 674f480ca4 Addrspacecasts are no-ops on ARM.
Testcase added.

llvm-svn: 196269
2013-12-03 11:23:11 +00:00

8 lines
244 B
LLVM

; 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
}