llvm-project/llvm/test/CodeGen/Hexagon/addrspacecast-crash.ll
Santanu Das 6780ab371f
[Hexagon] Add support for addrspacecast lowering (#119195)
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.
2024-12-20 11:20:37 -06:00

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
}