diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2013-06-10 13:29:47 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2013-06-10 13:29:47 +0000 |
commit | 7c32502a7f81dfaddb79c9c8e5b1acc759e19af9 (patch) | |
tree | d7c11d608f4e1b77e2fc70627213e3c7b326a76e /test | |
parent | 48d5e750a8189c55087333d2bbc5dd0e1e07ddfa (diff) | |
download | external_llvm-7c32502a7f81dfaddb79c9c8e5b1acc759e19af9.zip external_llvm-7c32502a7f81dfaddb79c9c8e5b1acc759e19af9.tar.gz external_llvm-7c32502a7f81dfaddb79c9c8e5b1acc759e19af9.tar.bz2 |
[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
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/NVPTX/pr16278.ll | 10 |
1 files changed, 10 insertions, 0 deletions
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 +} |