bolt/deps/llvm-18.1.8/llvm/test/CodeGen/NVPTX/pr16278.ll
2025-02-14 19:21:04 +01:00

10 lines
300 B
LLVM

; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s
; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 | %ptxas-verify %}
@one_f = addrspace(4) global float 1.000000e+00, align 4
define float @foo() {
; CHECK: ld.const.f32
%val = load float, ptr addrspace(4) @one_f
ret float %val
}