17 lines · python
1# Check all variants of instructions supported by PTX71 on SM80+2# RUN: %python %s --ptx=71 --gpu-arch=80 > %t-ptx71-sm_80.ll3# RUN: FileCheck %t-ptx71-sm_80.ll < %t-ptx71-sm_80.ll \4# RUN: --check-prefixes=INTRINSICS,M16N16,EXTGEOM,INT,SUBINT,MMA,ALTFLOAT,DOUBLE,PTX65MMA,PTX65LDMATRIX,PTX71MMA5# RUN: FileCheck %t-ptx71-sm_80.ll < %t-ptx71-sm_80.ll \6# RUN: --check-prefixes=INTRINSICS7# RUN: llc < %t-ptx71-sm_80.ll -mtriple=nvptx64 -mcpu=sm_80 -mattr=+ptx71 \8# RUN: | FileCheck %t-ptx71-sm_80.ll9# RUN: %if ptxas-sm_80 && ptxas-isa-7.1 %{ \10# RUN: llc < %t-ptx71-sm_80.ll -mtriple=nvptx64 -mcpu=sm_80 -mattr=+ptx71 \11# RUN: | %ptxas-verify -arch=sm_80 \12# RUN: %}13 14import wmma15 16wmma.main()17