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 | 83e9668133232be86a2b394651ecaf503e2d86fd (patch) | |
| tree | db71862e8d0597a58695b916c078fd89ffde317f /clang/test/CodeGenCUDA | |
| parent | 6b7b7e66d1e318cdf3a468759c00e8fad95a1cbf (diff) | |
| download | bcm5719-llvm-83e9668133232be86a2b394651ecaf503e2d86fd.tar.gz bcm5719-llvm-83e9668133232be86a2b394651ecaf503e2d86fd.zip | |
Replace PTX back-end with NVPTX back-end in all places where Clang cares
NV_CONTRIB
llvm-svn: 157403
Diffstat (limited to 'clang/test/CodeGenCUDA')
| -rw-r--r-- | clang/test/CodeGenCUDA/address-spaces.cu | 14 | ||||
| -rw-r--r-- | clang/test/CodeGenCUDA/ptx-kernels.cu | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/clang/test/CodeGenCUDA/address-spaces.cu b/clang/test/CodeGenCUDA/address-spaces.cu index 2da61ec95a6..61d4d6b6ba4 100644 --- a/clang/test/CodeGenCUDA/address-spaces.cu +++ b/clang/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++; } diff --git a/clang/test/CodeGenCUDA/ptx-kernels.cu b/clang/test/CodeGenCUDA/ptx-kernels.cu index ecca8519af6..f0bf2952a12 100644 --- a/clang/test/CodeGenCUDA/ptx-kernels.cu +++ b/clang/test/CodeGenCUDA/ptx-kernels.cu @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -triple ptx32-unknown-unknown -fcuda-is-device -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 %s -triple nvptx-unknown-unknown -fcuda-is-device -emit-llvm -o - | FileCheck %s #include "../SemaCUDA/cuda.h" |

