15 lines · python
1# Check all variants of instructions supported by PTX86 on SM120a2# RUN: %python %s --ptx=86 --gpu-arch=120 --aa > %t-ptx86-sm_120a.ll3# RUN: FileCheck %t-ptx86-sm_120a.ll < %t-ptx86-sm_120a.ll \4# RUN: --check-prefixes=PTX86LDMATRIX-DAG,PTX86STMATRIX-DAG5# RUN: llc < %t-ptx86-sm_120a.ll -mtriple=nvptx64 -mcpu=sm_120a -mattr=+ptx86 \6# RUN: | FileCheck %t-ptx86-sm_120a.ll7# RUN: %if ptxas-sm_120a && ptxas-isa-8.6 %{ \8# RUN: llc < %t-ptx86-sm_120a.ll -mtriple=nvptx64 -mcpu=sm_120a -mattr=+ptx86 \9# RUN: | %ptxas-verify -arch=sm_120a \10# RUN: %}11 12import wmma13 14wmma.main()15