/* { dg-do assemble } */ /* { dg-options {-march=sm_30 -mptx=4.2} } */ /* { dg-additional-options -save-temps } */ /* { dg-final { scan-assembler-times {(?n)^ \.version 4\.2$} 1 } } */ /* { dg-final { scan-assembler-times {(?n)^ \.target sm_30$} 1 } } */ #if __PTX_ISA_VERSION_MAJOR__ != 4 #error wrong value for __PTX_ISA_VERSION_MAJOR__ #endif #if __PTX_ISA_VERSION_MINOR__ != 2 #error wrong value for __PTX_ISA_VERSION_MINOR__ #endif #if __PTX_SM__ != 300 #error wrong value for __PTX_SM__ #endif int dummy;