73 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s3 4---5name: intrinsic_trunc_s16_vv6legalized: true7regBankSelected: true8tracksRegLiveness: true9 10body: |11 bb.0:12 liveins: $vgpr013 14 ; GCN-LABEL: name: intrinsic_trunc_s16_vv15 ; GCN: liveins: $vgpr016 ; GCN-NEXT: {{ $}}17 ; GCN-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr018 ; GCN-NEXT: %2:vgpr_32 = nofpexcept V_TRUNC_F16_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec19 ; GCN-NEXT: $vgpr0 = COPY %220 %0:vgpr(s32) = COPY $vgpr021 %1:vgpr(s16) = G_TRUNC %022 %2:vgpr(s16) = G_INTRINSIC_TRUNC %123 %3:vgpr(s32) = G_ANYEXT %224 $vgpr0 = COPY %325...26 27---28name: intrinsic_trunc_s16_vs29legalized: true30regBankSelected: true31tracksRegLiveness: true32 33body: |34 bb.0:35 liveins: $sgpr036 37 ; GCN-LABEL: name: intrinsic_trunc_s16_vs38 ; GCN: liveins: $sgpr039 ; GCN-NEXT: {{ $}}40 ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr041 ; GCN-NEXT: %2:vgpr_32 = nofpexcept V_TRUNC_F16_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec42 ; GCN-NEXT: $vgpr0 = COPY %243 %0:sgpr(s32) = COPY $sgpr044 %1:sgpr(s16) = G_TRUNC %045 %2:vgpr(s16) = G_INTRINSIC_TRUNC %146 %3:vgpr(s32) = G_ANYEXT %247 $vgpr0 = COPY %348...49 50---51name: intrinsic_trunc_fneg_s16_vv52legalized: true53regBankSelected: true54tracksRegLiveness: true55 56body: |57 bb.0:58 liveins: $vgpr059 60 ; GCN-LABEL: name: intrinsic_trunc_fneg_s16_vv61 ; GCN: liveins: $vgpr062 ; GCN-NEXT: {{ $}}63 ; GCN-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr064 ; GCN-NEXT: %3:vgpr_32 = nofpexcept V_TRUNC_F16_e64 1, [[COPY]], 0, 0, implicit $mode, implicit $exec65 ; GCN-NEXT: $vgpr0 = COPY %366 %0:vgpr(s32) = COPY $vgpr067 %1:vgpr(s16) = G_TRUNC %068 %2:vgpr(s16) = G_FNEG %169 %3:vgpr(s16) = G_INTRINSIC_TRUNC %270 %4:vgpr(s32) = G_ANYEXT %371 $vgpr0 = COPY %472...73