89 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck --check-prefixes=GCN,GFX803 %s3# RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck --check-prefixes=GCN,GFX803 %s4# RUN: llc -mtriple=amdgcn -mcpu=gfx1150 -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck --check-prefixes=GCN,GFX1150 %s5# RUN: llc -mtriple=amdgcn -mcpu=gfx1150 -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck --check-prefixes=GCN,GFX1150 %s6 7---8name: fcmp_ss9legalized: true10 11body: |12 bb.0:13 liveins: $sgpr0, $sgpr114 ; GFX803-LABEL: name: fcmp_ss15 ; GFX803: liveins: $sgpr0, $sgpr116 ; GFX803-NEXT: {{ $}}17 ; GFX803-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr018 ; GFX803-NEXT: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr119 ; GFX803-NEXT: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)20 ; GFX803-NEXT: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)21 ; GFX803-NEXT: [[FCMP:%[0-9]+]]:vcc(s1) = G_FCMP floatpred(uge), [[COPY2]](s32), [[COPY3]]22 ; GFX1150-LABEL: name: fcmp_ss23 ; GFX1150: liveins: $sgpr0, $sgpr124 ; GFX1150-NEXT: {{ $}}25 ; GFX1150-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr026 ; GFX1150-NEXT: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr127 ; GFX1150-NEXT: [[FCMP:%[0-9]+]]:sgpr(s32) = G_FCMP floatpred(uge), [[COPY]](s32), [[COPY1]]28 ; GFX1150-NEXT: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[FCMP]](s32)29 %0:_(s32) = COPY $sgpr030 %1:_(s32) = COPY $sgpr131 %2:_(s1) = G_FCMP floatpred(uge), %0(s32), %132...33 34---35name: fcmp_sv36legalized: true37 38body: |39 bb.0:40 liveins: $sgpr0, $vgpr041 ; GCN-LABEL: name: fcmp_sv42 ; GCN: liveins: $sgpr0, $vgpr043 ; GCN-NEXT: {{ $}}44 ; GCN-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr045 ; GCN-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr046 ; GCN-NEXT: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)47 ; GCN-NEXT: [[FCMP:%[0-9]+]]:vcc(s1) = G_FCMP floatpred(uge), [[COPY2]](s32), [[COPY1]]48 %0:_(s32) = COPY $sgpr049 %1:_(s32) = COPY $vgpr050 %2:_(s1) = G_FCMP floatpred(uge), %0, %151...52 53---54name: fcmp_vs55legalized: true56 57body: |58 bb.0:59 liveins: $sgpr0, $vgpr060 ; GCN-LABEL: name: fcmp_vs61 ; GCN: liveins: $sgpr0, $vgpr062 ; GCN-NEXT: {{ $}}63 ; GCN-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr064 ; GCN-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr065 ; GCN-NEXT: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)66 ; GCN-NEXT: [[FCMP:%[0-9]+]]:vcc(s1) = G_FCMP floatpred(uge), [[COPY1]](s32), [[COPY2]]67 %0:_(s32) = COPY $sgpr068 %1:_(s32) = COPY $vgpr069 %2:_(s1) = G_FCMP floatpred(uge), %1, %070...71 72---73name: fcmp_vv74legalized: true75 76body: |77 bb.0:78 liveins: $vgpr0, $vgpr179 ; GCN-LABEL: name: fcmp_vv80 ; GCN: liveins: $vgpr0, $vgpr181 ; GCN-NEXT: {{ $}}82 ; GCN-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr083 ; GCN-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr184 ; GCN-NEXT: [[ICMP:%[0-9]+]]:vcc(s1) = G_ICMP floatpred(uge), [[COPY]](s32), [[COPY1]]85 %0:_(s32) = COPY $vgpr086 %1:_(s32) = COPY $vgpr187 %2:_(s1) = G_ICMP floatpred(uge), %0, %188...89