17 lines · python
1# Check all variants of instructions supported by PTX65 on SM75+2# RUN: %python %s --ptx=65 --gpu-arch=75 > %t-ptx65-sm_75.ll3# RUN: FileCheck %t-ptx65-sm_75.ll < %t-ptx65-sm_75.ll \4# RUN: --check-prefixes=INTRINSICS,M16N16,EXTGEOM,INT,SUBINT,MMA,PTX65MMA,PTX65LDMATRIX5# RUN: FileCheck %t-ptx65-sm_75.ll < %t-ptx65-sm_75.ll \6# RUN: --check-prefixes=INTRINSICS7# RUN: llc < %t-ptx65-sm_75.ll -mtriple=nvptx64 -mcpu=sm_75 -mattr=+ptx65 \8# RUN: | FileCheck %t-ptx65-sm_75.ll9# RUN: %if ptxas-sm_75 && ptxas-isa-6.5 %{ \10# RUN: llc < %t-ptx65-sm_75.ll -mtriple=nvptx64 -mcpu=sm_75 -mattr=+ptx65 \11# RUN: | %ptxas-verify -arch=sm_75 \12# RUN: %}13 14import wmma15 16wmma.main()17