
This patch adds support for addrspacecast lowering. At the moment, there are no separate address spaces for Hexagon target, hence this instruction is treated as a noop.
13 lines
312 B
LLVM
13 lines
312 B
LLVM
; Tests if addrspacecast is handled in Hexagon backend
|
|
|
|
; REQUIRES: asserts
|
|
|
|
; RUN: llc -march=hexagon %s -o /dev/null
|
|
|
|
define double @f(ptr %G, ptr %x) {
|
|
BB:
|
|
%Castaddrspacecast = addrspacecast ptr %x to ptr addrspace(1)
|
|
store ptr addrspace(1) %Castaddrspacecast, ptr %G, align 8
|
|
ret double 0.000000e+00
|
|
}
|