From 21d8b9bcad1f058a4f2571dbc5a677e0ed95643e Mon Sep 17 00:00:00 2001 From: Che-Liang Chiou Date: Tue, 30 Nov 2010 10:14:14 +0000 Subject: ptx: add command-line options for gpu target and ptx version git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120423 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/PTX/options.ll | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/CodeGen/PTX/options.ll (limited to 'test') diff --git a/test/CodeGen/PTX/options.ll b/test/CodeGen/PTX/options.ll new file mode 100644 index 0000000..a14d5c9 --- /dev/null +++ b/test/CodeGen/PTX/options.ll @@ -0,0 +1,6 @@ +; 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" + +define ptx_device void @t1() { + ret void +} -- cgit v1.1