diff options
author | Che-Liang Chiou <clchiou@gmail.com> | 2011-03-02 03:20:28 +0000 |
---|---|---|
committer | Che-Liang Chiou <clchiou@gmail.com> | 2011-03-02 03:20:28 +0000 |
commit | fd8978b021dbb0b9b09084dcc707c2054ff76280 (patch) | |
tree | cdbd6a22e3787047cdb1edcaa79065a2231b6a9c /test/CodeGen/PTX/options.ll | |
parent | 9ff5de99df4820a128e525e077333047cfe50661 (diff) | |
download | external_llvm-fd8978b021dbb0b9b09084dcc707c2054ff76280.tar.gz external_llvm-fd8978b021dbb0b9b09084dcc707c2054ff76280.tar.bz2 external_llvm-fd8978b021dbb0b9b09084dcc707c2054ff76280.zip |
Extend initial support for primitive types in PTX backend
- Allow i16, i32, i64, float, and double types, using the native .u16,
.u32, .u64, .f32, and .f64 PTX types.
- Allow loading/storing of all primitive types.
- Allow primitive types to be passed as parameters.
- Allow selection of PTX Version and Shader Model as sub-target attributes.
- Merge integer/floating-point test cases for load/store.
- Use .u32 instead of .s32 to conform to output from NVidia nvcc compiler.
Patch by Justin Holewinski
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PTX/options.ll')
-rw-r--r-- | test/CodeGen/PTX/options.ll | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/CodeGen/PTX/options.ll b/test/CodeGen/PTX/options.ll index a14d5c9c27..1435537e00 100644 --- a/test/CodeGen/PTX/options.ll +++ b/test/CodeGen/PTX/options.ll @@ -1,5 +1,8 @@ -; RUN: llc < %s -march=ptx -ptx-version=2.0 | grep ".version 2.0" -; RUN: llc < %s -march=ptx -ptx-target=sm_20 | grep ".target sm_20" +; RUN: llc < %s -march=ptx -mattr=ptx14 | grep ".version 1.4" +; RUN: llc < %s -march=ptx -mattr=ptx20 | grep ".version 2.0" +; RUN: llc < %s -march=ptx -mattr=ptx21 | grep ".version 2.1" +; RUN: llc < %s -march=ptx -mattr=sm20 | grep ".target sm_20" +; RUN: llc < %s -march=ptx -mattr=sm13 | grep ".target sm_13" define ptx_device void @t1() { ret void |