diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2012-05-24 17:43:12 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2012-05-24 17:43:12 +0000 |
commit | 2c585b991596859f39860b6094247ba027a03530 (patch) | |
tree | fedee6adc82ff1df9a38c332c44cdc59bc0c17c8 /test/CodeGenCUDA/address-spaces.cu | |
parent | be72df01a84fc4f978f5cb03ac92d4bd1e5ced30 (diff) | |
download | clang-2c585b991596859f39860b6094247ba027a03530.tar.gz clang-2c585b991596859f39860b6094247ba027a03530.tar.bz2 clang-2c585b991596859f39860b6094247ba027a03530.tar.xz |
Replace PTX back-end with NVPTX back-end in all places where Clang cares
NV_CONTRIB
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157403 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCUDA/address-spaces.cu')
-rw-r--r-- | test/CodeGenCUDA/address-spaces.cu | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/CodeGenCUDA/address-spaces.cu b/test/CodeGenCUDA/address-spaces.cu index 2da61ec95a..61d4d6b6ba 100644 --- a/test/CodeGenCUDA/address-spaces.cu +++ b/test/CodeGenCUDA/address-spaces.cu @@ -1,24 +1,24 @@ -// RUN: %clang_cc1 -emit-llvm %s -o - -fcuda-is-device -triple ptx32-unknown-unknown | FileCheck %s +// RUN: %clang_cc1 -emit-llvm %s -o - -fcuda-is-device -triple nvptx-unknown-unknown | FileCheck %s #include "../SemaCUDA/cuda.h" -// CHECK: @i = global +// CHECK: @i = addrspace(1) global __device__ int i; -// CHECK: @j = addrspace(1) global +// CHECK: @j = addrspace(4) global __constant__ int j; -// CHECK: @k = addrspace(4) global +// CHECK: @k = addrspace(3) global __shared__ int k; __device__ void foo() { - // CHECK: load i32* @i + // CHECK: load i32* bitcast (i32 addrspace(1)* @i to i32*) i++; - // CHECK: load i32* bitcast (i32 addrspace(1)* @j to i32*) + // CHECK: load i32* bitcast (i32 addrspace(4)* @j to i32*) j++; - // CHECK: load i32* bitcast (i32 addrspace(4)* @k to i32*) + // CHECK: load i32* bitcast (i32 addrspace(3)* @k to i32*) k++; } |