llvm.org GIT mirror llvm / release_34 test / CodeGen / NVPTX / pr16278.ll
release_34

Tree @release_34 (Download .tar.gz)

pr16278.ll @release_34raw · history · blame

; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s


@one_f = addrspace(4) global float 1.000000e+00, align 4

define float @foo() {
; CHECK: ld.const.f32
  %val = load float addrspace(4)* @one_f
  ret float %val
}