From fd8978b021dbb0b9b09084dcc707c2054ff76280 Mon Sep 17 00:00:00 2001 From: Che-Liang Chiou Date: Wed, 2 Mar 2011 03:20:28 +0000 Subject: 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 --- test/CodeGen/PTX/options.ll | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/CodeGen/PTX/options.ll') 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 -- cgit v1.2.3