aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/NVPTX/pr16278.ll
blob: 5432a848442cd63b2820452a8b1a8b96d6f8cb41 (plain)
1
2
3
4
5
6
7
8
9
10
; 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
}