Che-Liang Chiou | 65b1476 | 2011-03-02 03:20:28 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=ptx -mattr=ptx20 | grep ".version 2.0" |
| 2 | ; RUN: llc < %s -march=ptx -mattr=ptx21 | grep ".version 2.1" |
Justin Holewinski | 94751fb | 2011-03-15 13:24:15 +0000 | [diff] [blame] | 3 | ; RUN: llc < %s -march=ptx -mattr=ptx22 | grep ".version 2.2" |
| 4 | ; RUN: llc < %s -march=ptx -mattr=sm10 | grep ".target sm_10" |
Che-Liang Chiou | 65b1476 | 2011-03-02 03:20:28 +0000 | [diff] [blame] | 5 | ; RUN: llc < %s -march=ptx -mattr=sm13 | grep ".target sm_13" |
Justin Holewinski | 94751fb | 2011-03-15 13:24:15 +0000 | [diff] [blame] | 6 | ; RUN: llc < %s -march=ptx -mattr=sm20 | grep ".target sm_20" |
Che-Liang Chiou | e9baf13 | 2010-11-30 10:14:14 +0000 | [diff] [blame] | 7 | |
| 8 | define ptx_device void @t1() { |
| 9 | ret void |
| 10 | } |