From 7c32502a7f81dfaddb79c9c8e5b1acc759e19af9 Mon Sep 17 00:00:00 2001 From: Justin Holewinski Date: Mon, 10 Jun 2013 13:29:47 +0000 Subject: [NVPTX] Remove old CONST_NOT_GEN address space that is not being used anymore and causes constants to be emitted in the global address space git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183652 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/NVPTX/pr16278.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/CodeGen/NVPTX/pr16278.ll (limited to 'test') diff --git a/test/CodeGen/NVPTX/pr16278.ll b/test/CodeGen/NVPTX/pr16278.ll new file mode 100644 index 0000000..5432a84 --- /dev/null +++ b/test/CodeGen/NVPTX/pr16278.ll @@ -0,0 +1,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 +} -- cgit v1.1