aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/addrspacecast.ll
blob: 7b6237d719d17ccc6fd899fb634e9bd293ea810b (plain)
1
2
3
4
5
6
7
; RUN: llc -mtriple=arm-eabi %s -o /dev/null

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