逐元素操作Tile-Tile【免费下载链接】pto-isaParallel Tile Operation (PTO) is a virtual instruction set architecture designed by Ascend CANN, focusing on tile-level operations. This repository offers high-performance, cross-platform tile operations across Ascend platforms.项目地址: https://gitcode.com/cann/pto-isa本文档描述两个 tile 之间的逐元素操作。操作总数29操作TADD该指令的详细介绍请见isa/TADDAS Level 1 (SSA)%dst pto.tadd %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tadd ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TABS该指令的详细介绍请见isa/TABSAS Level 1 (SSA)%dst pto.tabs %src : !pto.tile... - !pto.tile...AS Level 2 (DPS)pto.tabs ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TAND该指令的详细介绍请见isa/TANDAS Level 1 (SSA)%dst pto.tand %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tand ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TOR该指令的详细介绍请见isa/TORAS Level 1 (SSA)%dst pto.tor %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tor ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSUB该指令的详细介绍请见isa/TSUBAS Level 1 (SSA)%dst pto.tsub %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tsub ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TMUL该指令的详细介绍请见isa/TMULAS Level 1 (SSA)%dst pto.tmul %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tmul ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TMIN该指令的详细介绍请见isa/TMINAS Level 1 (SSA)%dst pto.tmin %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tmin ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TMAX该指令的详细介绍请见isa/TMAXAS Level 1 (SSA)%dst pto.tmax %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tmax ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TCMP该指令的详细介绍请见isa/TCMPAS Level 1 (SSA)%dst pto.tcmp %src0, %src1{cmpMode #ptocmp xx}: (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tcmp ins(%src0, %src1{cmpMode #ptocmp xx}: !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TDIV该指令的详细介绍请见isa/TDIVAS Level 1 (SSA)%dst pto.tdiv %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tdiv ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSHL该指令的详细介绍请见isa/TSHLAS Level 1 (SSA)%dst pto.tshl %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tshl ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSHR该指令的详细介绍请见isa/TSHRAS Level 1 (SSA)%dst pto.tshr %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tshr ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TXOR该指令的详细介绍请见isa/TXORAS Level 1 (SSA)%dst pto.txor %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.txor ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TLOG该指令的详细介绍请见isa/TLOGAS Level 1 (SSA)%dst pto.tlog %src : !pto.tile... - !pto.tile...AS Level 2 (DPS)pto.tlog ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TRECIP该指令的详细介绍请见isa/TRECIPAS Level 1 (SSA)%dst pto.trecip %src : !pto.tile... - !pto.tile...AS Level 2 (DPS)pto.trecip ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TPRELU该指令的详细介绍请见isa/TPRELUAS Level 1 (SSA)%dst pto.tprelu %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tprelu ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TADDC该指令的详细介绍请见isa/TADDCAS Level 1 (SSA)%dst pto.taddc %src0, %src1, %src2 : (!pto.tile..., !pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.taddc ins(%src0, %src1, %src2 : !pto.tile_buf..., !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSUBC该指令的详细介绍请见isa/TSUBCAS Level 1 (SSA)%dst pto.tsubc %src0, %src1, %src2 : (!pto.tile..., !pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tsubc ins(%src0, %src1, %src2 : !pto.tile_buf..., !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TCVT该指令的详细介绍请见isa/TCVTAS Level 1 (SSA)%dst pto.tcvt %src{rmode #ptoround_mode xx}: !pto.tile... - !pto.tile...AS Level 2 (DPS)pto.tcvt ins(%src{rmode #ptoround_mode xx}: !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSEL该指令的详细介绍请见isa/TSELAS Level 1 (SSA)%dst pto.tsel %mask, %src0, %src1 : (!pto.tile..., !pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tsel ins(%mask, %src0, %src1 : !pto.tile_buf..., !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TRSQRT该指令的详细介绍请见isa/TRSQRTAS Level 1 (SSA)%dst pto.trsqrt %src : !pto.tile... - !pto.tile...AS Level 2 (DPS)pto.trsqrt ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSQRT该指令的详细介绍请见isa/TSQRTAS Level 1 (SSA)%dst pto.tsqrt %src : !pto.tile... - !pto.tile...AS Level 2 (DPS)pto.tsqrt ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TEXP该指令的详细介绍请见isa/TEXPAS Level 1 (SSA)%dst pto.texp %src : !pto.tile... - !pto.tile...AS Level 2 (DPS)pto.texp ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TNOT该指令的详细介绍请见isa/TNOTAS Level 1 (SSA)%dst pto.tnot %src : !pto.tile... - !pto.tile...AS Level 2 (DPS)pto.tnot ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TRELU该指令的详细介绍请见isa/TRELUAS Level 1 (SSA)%dst pto.trelu %src : !pto.tile... - !pto.tile...AS Level 2 (DPS)pto.trelu ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TNEG该指令的详细介绍请见isa/TNEGAS Level 1 (SSA)%dst pto.tneg %src : !pto.tile... - !pto.tile...AS Level 2 (DPS)pto.tneg ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TREM该指令的详细介绍请见isa/TREMAS Level 1 (SSA)%dst pto.trem %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.trem ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TFMOD该指令的详细介绍请见isa/TFMODAS Level 1 (SSA)%dst pto.tfmod %src0, %src1 : !pto.tile...AS Level 2 (DPS)pto.tfmod ins(%src0, %src1 : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TPOW该指令的详细介绍请见isa/TPOWAS Level 1 (SSA)%dst pto.tpow %base, %exp, %tmp : (!pto.tile..., !pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS)pto.tpow ins(%base, %exp, %tmp : !pto.tile_buf..., !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)【免费下载链接】pto-isaParallel Tile Operation (PTO) is a virtual instruction set architecture designed by Ascend CANN, focusing on tile-level operations. This repository offers high-performance, cross-platform tile operations across Ascend platforms.项目地址: https://gitcode.com/cann/pto-isa创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考