brintos

brintos / llvm-project-archived public Read only

0
0
Text · 10.2 KiB · aecff1b Raw
223 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 52# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -verify-machineinstrs -run-pass=prologepilog %s -o - | FileCheck -check-prefix=MUBUFW64 %s3# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -verify-machineinstrs -run-pass=prologepilog %s -o - | FileCheck -check-prefix=MUBUFW64 %s4# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs -run-pass=prologepilog %s -o - | FileCheck -check-prefix=MUBUFW64 %s5# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -verify-machineinstrs -run-pass=prologepilog %s -o - | FileCheck -check-prefix=MUBUFW64 %s6# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -verify-machineinstrs -run-pass=prologepilog %s -o - | FileCheck -check-prefix=MUBUFW32 %s7 8# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx942 -verify-machineinstrs -run-pass=prologepilog %s -o - | FileCheck -check-prefix=FLATSCRW64 %s9# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1100 -verify-machineinstrs -run-pass=prologepilog %s -o - | FileCheck -check-prefix=FLATSCRW32 %s10# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1200 -verify-machineinstrs -run-pass=prologepilog %s -o - | FileCheck -check-prefix=FLATSCRW32 %s11 12---13name: s_or_b32__inline_imm__fi_offset014tracksRegLiveness: true15stack:16  - { id: 0, size: 32, alignment: 16 }17machineFunctionInfo:18  scratchRSrcReg:  '$sgpr0_sgpr1_sgpr2_sgpr3'19  frameOffsetReg:  '$sgpr33'20  stackPtrOffsetReg: '$sgpr32'21body:             |22  bb.0:23    ; MUBUFW64-LABEL: name: s_or_b32__inline_imm__fi_offset024    ; MUBUFW64: $sgpr4 = S_LSHR_B32 $sgpr32, 6, implicit-def dead $scc25    ; MUBUFW64-NEXT: renamable $sgpr7 = S_OR_B32 12, killed $sgpr4, implicit-def $scc26    ; MUBUFW64-NEXT: SI_RETURN implicit $sgpr7, implicit $scc27    ;28    ; MUBUFW32-LABEL: name: s_or_b32__inline_imm__fi_offset029    ; MUBUFW32: $sgpr4 = S_LSHR_B32 $sgpr32, 5, implicit-def dead $scc30    ; MUBUFW32-NEXT: renamable $sgpr7 = S_OR_B32 12, killed $sgpr4, implicit-def $scc31    ; MUBUFW32-NEXT: SI_RETURN implicit $sgpr7, implicit $scc32    ;33    ; FLATSCRW64-LABEL: name: s_or_b32__inline_imm__fi_offset034    ; FLATSCRW64: renamable $sgpr7 = S_OR_B32 12, $sgpr32, implicit-def $scc35    ; FLATSCRW64-NEXT: SI_RETURN implicit $sgpr7, implicit $scc36    ;37    ; FLATSCRW32-LABEL: name: s_or_b32__inline_imm__fi_offset038    ; FLATSCRW32: renamable $sgpr7 = S_OR_B32 12, $sgpr32, implicit-def $scc39    ; FLATSCRW32-NEXT: SI_RETURN implicit $sgpr7, implicit $scc40    renamable $sgpr7 = S_OR_B32 12, %stack.0, implicit-def $scc41    SI_RETURN implicit $sgpr7, implicit $scc42 43...44 45---46name: s_or_b32__literal__fi_offset9647tracksRegLiveness: true48stack:49  - { id: 0, size: 96, alignment: 16 }50  - { id: 1, size: 24, alignment: 4 }51machineFunctionInfo:52  scratchRSrcReg:  '$sgpr0_sgpr1_sgpr2_sgpr3'53  frameOffsetReg:  '$sgpr33'54  stackPtrOffsetReg: '$sgpr32'55body:             |56  bb.0:57    ; MUBUFW64-LABEL: name: s_or_b32__literal__fi_offset9658    ; MUBUFW64: $sgpr4 = S_LSHR_B32 $sgpr32, 6, implicit-def $scc59    ; MUBUFW64-NEXT: $sgpr4 = S_ADD_I32 killed $sgpr4, 96, implicit-def $scc60    ; MUBUFW64-NEXT: renamable $sgpr7 = S_OR_B32 68, killed $sgpr4, implicit-def $scc61    ; MUBUFW64-NEXT: SI_RETURN implicit $sgpr7, implicit $scc62    ;63    ; MUBUFW32-LABEL: name: s_or_b32__literal__fi_offset9664    ; MUBUFW32: $sgpr4 = S_LSHR_B32 $sgpr32, 5, implicit-def $scc65    ; MUBUFW32-NEXT: $sgpr4 = S_ADD_I32 killed $sgpr4, 96, implicit-def $scc66    ; MUBUFW32-NEXT: renamable $sgpr7 = S_OR_B32 68, killed $sgpr4, implicit-def $scc67    ; MUBUFW32-NEXT: SI_RETURN implicit $sgpr7, implicit $scc68    ;69    ; FLATSCRW64-LABEL: name: s_or_b32__literal__fi_offset9670    ; FLATSCRW64: $sgpr4 = S_ADD_I32 $sgpr32, 96, implicit-def $scc71    ; FLATSCRW64-NEXT: renamable $sgpr7 = S_OR_B32 68, killed $sgpr4, implicit-def $scc72    ; FLATSCRW64-NEXT: SI_RETURN implicit $sgpr7, implicit $scc73    ;74    ; FLATSCRW32-LABEL: name: s_or_b32__literal__fi_offset9675    ; FLATSCRW32: $sgpr4 = S_ADD_I32 $sgpr32, 96, implicit-def $scc76    ; FLATSCRW32-NEXT: renamable $sgpr7 = S_OR_B32 68, killed $sgpr4, implicit-def $scc77    ; FLATSCRW32-NEXT: SI_RETURN implicit $sgpr7, implicit $scc78    renamable $sgpr7 = S_OR_B32 68, %stack.1, implicit-def $scc79    SI_RETURN implicit $sgpr7, implicit $scc80 81...82 83---84name: s_or_b32__sgpr__fi_literal_offset85tracksRegLiveness: true86stack:87  - { id: 0, size: 80, alignment: 16 }88  - { id: 1, size: 48, alignment: 4 }89machineFunctionInfo:90  scratchRSrcReg:  '$sgpr0_sgpr1_sgpr2_sgpr3'91  frameOffsetReg:  '$sgpr33'92  stackPtrOffsetReg: '$sgpr32'93body:             |94  bb.0:95    liveins: $sgpr896    ; MUBUFW64-LABEL: name: s_or_b32__sgpr__fi_literal_offset97    ; MUBUFW64: liveins: $sgpr898    ; MUBUFW64-NEXT: {{  $}}99    ; MUBUFW64-NEXT: $sgpr4 = S_LSHR_B32 $sgpr32, 6, implicit-def $scc100    ; MUBUFW64-NEXT: $sgpr4 = S_ADD_I32 killed $sgpr4, 80, implicit-def $scc101    ; MUBUFW64-NEXT: renamable $sgpr7 = S_OR_B32 $sgpr8, killed $sgpr4, implicit-def $scc102    ; MUBUFW64-NEXT: SI_RETURN implicit $sgpr7, implicit $scc103    ;104    ; MUBUFW32-LABEL: name: s_or_b32__sgpr__fi_literal_offset105    ; MUBUFW32: liveins: $sgpr8106    ; MUBUFW32-NEXT: {{  $}}107    ; MUBUFW32-NEXT: $sgpr4 = S_LSHR_B32 $sgpr32, 5, implicit-def $scc108    ; MUBUFW32-NEXT: $sgpr4 = S_ADD_I32 killed $sgpr4, 80, implicit-def $scc109    ; MUBUFW32-NEXT: renamable $sgpr7 = S_OR_B32 $sgpr8, killed $sgpr4, implicit-def $scc110    ; MUBUFW32-NEXT: SI_RETURN implicit $sgpr7, implicit $scc111    ;112    ; FLATSCRW64-LABEL: name: s_or_b32__sgpr__fi_literal_offset113    ; FLATSCRW64: liveins: $sgpr8114    ; FLATSCRW64-NEXT: {{  $}}115    ; FLATSCRW64-NEXT: $sgpr4 = S_ADD_I32 $sgpr32, 80, implicit-def $scc116    ; FLATSCRW64-NEXT: renamable $sgpr7 = S_OR_B32 $sgpr8, killed $sgpr4, implicit-def $scc117    ; FLATSCRW64-NEXT: SI_RETURN implicit $sgpr7, implicit $scc118    ;119    ; FLATSCRW32-LABEL: name: s_or_b32__sgpr__fi_literal_offset120    ; FLATSCRW32: liveins: $sgpr8121    ; FLATSCRW32-NEXT: {{  $}}122    ; FLATSCRW32-NEXT: $sgpr4 = S_ADD_I32 $sgpr32, 80, implicit-def $scc123    ; FLATSCRW32-NEXT: renamable $sgpr7 = S_OR_B32 $sgpr8, killed $sgpr4, implicit-def $scc124    ; FLATSCRW32-NEXT: SI_RETURN implicit $sgpr7, implicit $scc125    renamable $sgpr7 = S_OR_B32 $sgpr8, %stack.1, implicit-def $scc126    SI_RETURN implicit $sgpr7, implicit $scc127 128...129 130---131name: s_or_b32__sgpr__fi_inlineimm_offset132tracksRegLiveness: true133stack:134  - { id: 0, size: 32, alignment: 16 }135  - { id: 1, size: 48, alignment: 4 }136machineFunctionInfo:137  scratchRSrcReg:  '$sgpr0_sgpr1_sgpr2_sgpr3'138  frameOffsetReg:  '$sgpr33'139  stackPtrOffsetReg: '$sgpr32'140body:             |141  bb.0:142    liveins: $sgpr8143    ; MUBUFW64-LABEL: name: s_or_b32__sgpr__fi_inlineimm_offset144    ; MUBUFW64: liveins: $sgpr8145    ; MUBUFW64-NEXT: {{  $}}146    ; MUBUFW64-NEXT: $sgpr4 = S_LSHR_B32 $sgpr32, 6, implicit-def $scc147    ; MUBUFW64-NEXT: $sgpr4 = S_ADD_I32 killed $sgpr4, 32, implicit-def $scc148    ; MUBUFW64-NEXT: renamable $sgpr7 = S_OR_B32 $sgpr8, killed $sgpr4, implicit-def $scc149    ; MUBUFW64-NEXT: SI_RETURN implicit $sgpr7, implicit $scc150    ;151    ; MUBUFW32-LABEL: name: s_or_b32__sgpr__fi_inlineimm_offset152    ; MUBUFW32: liveins: $sgpr8153    ; MUBUFW32-NEXT: {{  $}}154    ; MUBUFW32-NEXT: $sgpr4 = S_LSHR_B32 $sgpr32, 5, implicit-def $scc155    ; MUBUFW32-NEXT: $sgpr4 = S_ADD_I32 killed $sgpr4, 32, implicit-def $scc156    ; MUBUFW32-NEXT: renamable $sgpr7 = S_OR_B32 $sgpr8, killed $sgpr4, implicit-def $scc157    ; MUBUFW32-NEXT: SI_RETURN implicit $sgpr7, implicit $scc158    ;159    ; FLATSCRW64-LABEL: name: s_or_b32__sgpr__fi_inlineimm_offset160    ; FLATSCRW64: liveins: $sgpr8161    ; FLATSCRW64-NEXT: {{  $}}162    ; FLATSCRW64-NEXT: $sgpr4 = S_ADD_I32 $sgpr32, 32, implicit-def $scc163    ; FLATSCRW64-NEXT: renamable $sgpr7 = S_OR_B32 $sgpr8, killed $sgpr4, implicit-def $scc164    ; FLATSCRW64-NEXT: SI_RETURN implicit $sgpr7, implicit $scc165    ;166    ; FLATSCRW32-LABEL: name: s_or_b32__sgpr__fi_inlineimm_offset167    ; FLATSCRW32: liveins: $sgpr8168    ; FLATSCRW32-NEXT: {{  $}}169    ; FLATSCRW32-NEXT: $sgpr4 = S_ADD_I32 $sgpr32, 32, implicit-def $scc170    ; FLATSCRW32-NEXT: renamable $sgpr7 = S_OR_B32 $sgpr8, killed $sgpr4, implicit-def $scc171    ; FLATSCRW32-NEXT: SI_RETURN implicit $sgpr7, implicit $scc172    renamable $sgpr7 = S_OR_B32 $sgpr8, %stack.1, implicit-def $scc173    SI_RETURN implicit $sgpr7, implicit $scc174 175...176 177---178name: s_and_b32__sgpr__fi_literal_offset179tracksRegLiveness: true180stack:181  - { id: 0, size: 80, alignment: 16 }182  - { id: 1, size: 48, alignment: 4 }183machineFunctionInfo:184  scratchRSrcReg:  '$sgpr0_sgpr1_sgpr2_sgpr3'185  frameOffsetReg:  '$sgpr33'186  stackPtrOffsetReg: '$sgpr32'187body:             |188  bb.0:189    liveins: $sgpr8190    ; MUBUFW64-LABEL: name: s_and_b32__sgpr__fi_literal_offset191    ; MUBUFW64: liveins: $sgpr8192    ; MUBUFW64-NEXT: {{  $}}193    ; MUBUFW64-NEXT: $sgpr4 = S_LSHR_B32 $sgpr32, 6, implicit-def $scc194    ; MUBUFW64-NEXT: $sgpr4 = S_ADD_I32 killed $sgpr4, 80, implicit-def $scc195    ; MUBUFW64-NEXT: renamable $sgpr7 = S_AND_B32 $sgpr8, killed $sgpr4, implicit-def $scc196    ; MUBUFW64-NEXT: SI_RETURN implicit $sgpr7, implicit $scc197    ;198    ; MUBUFW32-LABEL: name: s_and_b32__sgpr__fi_literal_offset199    ; MUBUFW32: liveins: $sgpr8200    ; MUBUFW32-NEXT: {{  $}}201    ; MUBUFW32-NEXT: $sgpr4 = S_LSHR_B32 $sgpr32, 5, implicit-def $scc202    ; MUBUFW32-NEXT: $sgpr4 = S_ADD_I32 killed $sgpr4, 80, implicit-def $scc203    ; MUBUFW32-NEXT: renamable $sgpr7 = S_AND_B32 $sgpr8, killed $sgpr4, implicit-def $scc204    ; MUBUFW32-NEXT: SI_RETURN implicit $sgpr7, implicit $scc205    ;206    ; FLATSCRW64-LABEL: name: s_and_b32__sgpr__fi_literal_offset207    ; FLATSCRW64: liveins: $sgpr8208    ; FLATSCRW64-NEXT: {{  $}}209    ; FLATSCRW64-NEXT: $sgpr4 = S_ADD_I32 $sgpr32, 80, implicit-def $scc210    ; FLATSCRW64-NEXT: renamable $sgpr7 = S_AND_B32 $sgpr8, killed $sgpr4, implicit-def $scc211    ; FLATSCRW64-NEXT: SI_RETURN implicit $sgpr7, implicit $scc212    ;213    ; FLATSCRW32-LABEL: name: s_and_b32__sgpr__fi_literal_offset214    ; FLATSCRW32: liveins: $sgpr8215    ; FLATSCRW32-NEXT: {{  $}}216    ; FLATSCRW32-NEXT: $sgpr4 = S_ADD_I32 $sgpr32, 80, implicit-def $scc217    ; FLATSCRW32-NEXT: renamable $sgpr7 = S_AND_B32 $sgpr8, killed $sgpr4, implicit-def $scc218    ; FLATSCRW32-NEXT: SI_RETURN implicit $sgpr7, implicit $scc219    renamable $sgpr7 = S_AND_B32 $sgpr8, %stack.1, implicit-def $scc220    SI_RETURN implicit $sgpr7, implicit $scc221 222...223