| 1 |
/* { dg-do assemble } */ |
| 2 |
/* { dg-options {-march-map=sm_30 -mptx=_} } */ |
| 3 |
/* { dg-additional-options -save-temps } */ |
| 4 |
/* { dg-final { scan-assembler-times {(?n)^ \.version 6\.3$} 1 } } */ |
| 5 |
/* { dg-final { scan-assembler-times {(?n)^ \.target sm_30$} 1 } } */ |
| 6 |
|
| 7 |
#if __PTX_ISA_VERSION_MAJOR__ != 6 |
| 8 |
#error wrong value for __PTX_ISA_VERSION_MAJOR__ |
| 9 |
#endif |
| 10 |
|
| 11 |
#if __PTX_ISA_VERSION_MINOR__ != 3 |
| 12 |
#error wrong value for __PTX_ISA_VERSION_MINOR__ |
| 13 |
#endif |
| 14 |
|
| 15 |
#if __PTX_SM__ != 300 |
| 16 |
#error wrong value for __PTX_SM__ |
| 17 |
#endif |
| 18 |
|
| 19 |
int dummy; |