diff options
Diffstat (limited to 'test/CodeGenCUDA/address-spaces.cu')
-rw-r--r-- | test/CodeGenCUDA/address-spaces.cu | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/test/CodeGenCUDA/address-spaces.cu b/test/CodeGenCUDA/address-spaces.cu index 31cba958e154a..449529bb24b45 100644 --- a/test/CodeGenCUDA/address-spaces.cu +++ b/test/CodeGenCUDA/address-spaces.cu @@ -25,8 +25,6 @@ struct MyStruct { // CHECK: @_ZZ5func3vE1a = internal addrspace(3) global float 0.000000e+00 // CHECK: @_ZZ5func4vE1a = internal addrspace(3) global float 0.000000e+00 // CHECK: @b = addrspace(3) global float undef -// CHECK: @c = addrspace(3) global %struct.c undef -// CHECK @d = addrspace(3) global %struct.d undef __device__ void foo() { // CHECK: load i32, i32* addrspacecast (i32 addrspace(1)* @i to i32*) @@ -38,14 +36,6 @@ __device__ void foo() { // CHECK: load i32, i32* addrspacecast (i32 addrspace(3)* @k to i32*) k++; - static int li; - // CHECK: load i32, i32* addrspacecast (i32 addrspace(1)* @_ZZ3foovE2li to i32*) - li++; - - __constant__ int lj; - // CHECK: load i32, i32* addrspacecast (i32 addrspace(4)* @_ZZ3foovE2lj to i32*) - lj++; - __shared__ int lk; // CHECK: load i32, i32* addrspacecast (i32 addrspace(3)* @_ZZ3foovE2lk to i32*) lk++; @@ -102,32 +92,3 @@ __device__ float *func5() { } // CHECK: define float* @_Z5func5v() // CHECK: ret float* addrspacecast (float addrspace(3)* @b to float*) - -struct StructWithCtor { - __device__ StructWithCtor(): data(1) {} - __device__ StructWithCtor(const StructWithCtor &second): data(second.data) {} - __device__ int getData() { return data; } - int data; -}; - -__device__ int construct_shared_struct() { -// CHECK-LABEL: define i32 @_Z23construct_shared_structv() - __shared__ StructWithCtor s; -// CHECK: call void @_ZN14StructWithCtorC1Ev(%struct.StructWithCtor* addrspacecast (%struct.StructWithCtor addrspace(3)* @_ZZ23construct_shared_structvE1s to %struct.StructWithCtor*)) - __shared__ StructWithCtor t(s); -// CHECK: call void @_ZN14StructWithCtorC1ERKS_(%struct.StructWithCtor* addrspacecast (%struct.StructWithCtor addrspace(3)* @_ZZ23construct_shared_structvE1t to %struct.StructWithCtor*), %struct.StructWithCtor* dereferenceable(4) addrspacecast (%struct.StructWithCtor addrspace(3)* @_ZZ23construct_shared_structvE1s to %struct.StructWithCtor*)) - return t.getData(); -// CHECK: call i32 @_ZN14StructWithCtor7getDataEv(%struct.StructWithCtor* addrspacecast (%struct.StructWithCtor addrspace(3)* @_ZZ23construct_shared_structvE1t to %struct.StructWithCtor*)) -} - -// Make sure we allow __shared__ structures with default or empty constructors. -struct c { - int i; -}; -__shared__ struct c c; - -struct d { - int i; - d() {} -}; -__shared__ struct d d; |