diff options
author | Justin Holewinski <justin.holewinski@gmail.com> | 2011-03-14 15:40:11 +0000 |
---|---|---|
committer | Justin Holewinski <justin.holewinski@gmail.com> | 2011-03-14 15:40:11 +0000 |
commit | ae3ce17bac32d09f4ffb175039faa89153e5147a (patch) | |
tree | 9ecf6104cfd4a24e76849f2044205fc4953ef500 /test/CodeGen/PTX/ld.ll | |
parent | ba02495a5771cfe912a4f63d9d3646ac3062b014 (diff) |
PTX: Emit global arrays with proper sizes
- Emit all arrays as type .b8 and proper sizes in bytes to conform
to the output of nvcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PTX/ld.ll')
-rw-r--r-- | test/CodeGen/PTX/ld.ll | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/test/CodeGen/PTX/ld.ll b/test/CodeGen/PTX/ld.ll index e7cc92e3c9..6d120dcf7a 100644 --- a/test/CodeGen/PTX/ld.ll +++ b/test/CodeGen/PTX/ld.ll @@ -1,63 +1,63 @@ ; RUN: llc < %s -march=ptx | FileCheck %s -;CHECK: .extern .global .u16 array_i16[]; +;CHECK: .extern .global .b8 array_i16[20]; @array_i16 = external global [10 x i16] -;CHECK: .extern .const .u16 array_constant_i16[]; +;CHECK: .extern .const .b8 array_constant_i16[20]; @array_constant_i16 = external addrspace(1) constant [10 x i16] -;CHECK: .extern .local .u16 array_local_i16[]; +;CHECK: .extern .local .b8 array_local_i16[20]; @array_local_i16 = external addrspace(2) global [10 x i16] -;CHECK: .extern .shared .u16 array_shared_i16[]; +;CHECK: .extern .shared .b8 array_shared_i16[20]; @array_shared_i16 = external addrspace(4) global [10 x i16] -;CHECK: .extern .global .u32 array_i32[]; +;CHECK: .extern .global .b8 array_i32[40]; @array_i32 = external global [10 x i32] -;CHECK: .extern .const .u32 array_constant_i32[]; +;CHECK: .extern .const .b8 array_constant_i32[40]; @array_constant_i32 = external addrspace(1) constant [10 x i32] -;CHECK: .extern .local .u32 array_local_i32[]; +;CHECK: .extern .local .b8 array_local_i32[40]; @array_local_i32 = external addrspace(2) global [10 x i32] -;CHECK: .extern .shared .u32 array_shared_i32[]; +;CHECK: .extern .shared .b8 array_shared_i32[40]; @array_shared_i32 = external addrspace(4) global [10 x i32] -;CHECK: .extern .global .u64 array_i64[]; +;CHECK: .extern .global .b8 array_i64[80]; @array_i64 = external global [10 x i64] -;CHECK: .extern .const .u64 array_constant_i64[]; +;CHECK: .extern .const .b8 array_constant_i64[80]; @array_constant_i64 = external addrspace(1) constant [10 x i64] -;CHECK: .extern .local .u64 array_local_i64[]; +;CHECK: .extern .local .b8 array_local_i64[80]; @array_local_i64 = external addrspace(2) global [10 x i64] -;CHECK: .extern .shared .u64 array_shared_i64[]; +;CHECK: .extern .shared .b8 array_shared_i64[80]; @array_shared_i64 = external addrspace(4) global [10 x i64] -;CHECK: .extern .global .f32 array_float[]; +;CHECK: .extern .global .b8 array_float[40]; @array_float = external global [10 x float] -;CHECK: .extern .const .f32 array_constant_float[]; +;CHECK: .extern .const .b8 array_constant_float[40]; @array_constant_float = external addrspace(1) constant [10 x float] -;CHECK: .extern .local .f32 array_local_float[]; +;CHECK: .extern .local .b8 array_local_float[40]; @array_local_float = external addrspace(2) global [10 x float] -;CHECK: .extern .shared .f32 array_shared_float[]; +;CHECK: .extern .shared .b8 array_shared_float[40]; @array_shared_float = external addrspace(4) global [10 x float] -;CHECK: .extern .global .f64 array_double[]; +;CHECK: .extern .global .b8 array_double[80]; @array_double = external global [10 x double] -;CHECK: .extern .const .f64 array_constant_double[]; +;CHECK: .extern .const .b8 array_constant_double[80]; @array_constant_double = external addrspace(1) constant [10 x double] -;CHECK: .extern .local .f64 array_local_double[]; +;CHECK: .extern .local .b8 array_local_double[80]; @array_local_double = external addrspace(2) global [10 x double] -;CHECK: .extern .shared .f64 array_shared_double[]; +;CHECK: .extern .shared .b8 array_shared_double[80]; @array_shared_double = external addrspace(4) global [10 x double] |