@@ -281,10 +281,8 @@ void HexagonAsmPrinter::HexagonProcessInstruction(MCInst &Inst,
281
281
MCInst &MappedInst = static_cast <MCInst &>(Inst);
282
282
const MCRegisterInfo *RI = OutStreamer->getContext ().getRegisterInfo ();
283
283
const MachineFunction &MF = *MI.getParent ()->getParent ();
284
- const auto &HST = MF.getSubtarget <HexagonSubtarget>();
285
- const auto &VecRC = HST.useHVXSglOps () ? Hexagon::VectorRegsRegClass
286
- : Hexagon::VectorRegs128BRegClass;
287
- unsigned VectorSize = HST.getRegisterInfo ()->getSpillSize (VecRC);
284
+ auto &HRI = *MF.getSubtarget <HexagonSubtarget>().getRegisterInfo ();
285
+ unsigned VectorSize = HRI.getRegSizeInBits (Hexagon::HvxVRRegClass) / 8 ;
288
286
289
287
switch (Inst.getOpcode ()) {
290
288
default : return ;
@@ -605,8 +603,7 @@ void HexagonAsmPrinter::HexagonProcessInstruction(MCInst &Inst,
605
603
return ;
606
604
}
607
605
608
- case Hexagon::V6_vd0:
609
- case Hexagon::V6_vd0_128B: {
606
+ case Hexagon::V6_vd0: {
610
607
MCInst TmpInst;
611
608
assert (Inst.getOperand (0 ).isReg () &&
612
609
" Expected register and none was found" );
@@ -626,13 +623,6 @@ void HexagonAsmPrinter::HexagonProcessInstruction(MCInst &Inst,
626
623
case Hexagon::V6_vL32b_nt_pi:
627
624
case Hexagon::V6_vL32b_nt_tmp_pi:
628
625
case Hexagon::V6_vL32b_tmp_pi:
629
- case Hexagon::V6_vL32Ub_pi_128B:
630
- case Hexagon::V6_vL32b_cur_pi_128B:
631
- case Hexagon::V6_vL32b_nt_cur_pi_128B:
632
- case Hexagon::V6_vL32b_pi_128B:
633
- case Hexagon::V6_vL32b_nt_pi_128B:
634
- case Hexagon::V6_vL32b_nt_tmp_pi_128B:
635
- case Hexagon::V6_vL32b_tmp_pi_128B:
636
626
MappedInst = ScaleVectorOffset (Inst, 3 , VectorSize, OutContext);
637
627
return ;
638
628
@@ -643,13 +633,6 @@ void HexagonAsmPrinter::HexagonProcessInstruction(MCInst &Inst,
643
633
case Hexagon::V6_vL32b_nt_cur_ai:
644
634
case Hexagon::V6_vL32b_nt_tmp_ai:
645
635
case Hexagon::V6_vL32b_tmp_ai:
646
- case Hexagon::V6_vL32Ub_ai_128B:
647
- case Hexagon::V6_vL32b_ai_128B:
648
- case Hexagon::V6_vL32b_cur_ai_128B:
649
- case Hexagon::V6_vL32b_nt_ai_128B:
650
- case Hexagon::V6_vL32b_nt_cur_ai_128B:
651
- case Hexagon::V6_vL32b_nt_tmp_ai_128B:
652
- case Hexagon::V6_vL32b_tmp_ai_128B:
653
636
MappedInst = ScaleVectorOffset (Inst, 2 , VectorSize, OutContext);
654
637
return ;
655
638
@@ -658,11 +641,6 @@ void HexagonAsmPrinter::HexagonProcessInstruction(MCInst &Inst,
658
641
case Hexagon::V6_vS32b_nt_new_pi:
659
642
case Hexagon::V6_vS32b_nt_pi:
660
643
case Hexagon::V6_vS32b_pi:
661
- case Hexagon::V6_vS32Ub_pi_128B:
662
- case Hexagon::V6_vS32b_new_pi_128B:
663
- case Hexagon::V6_vS32b_nt_new_pi_128B:
664
- case Hexagon::V6_vS32b_nt_pi_128B:
665
- case Hexagon::V6_vS32b_pi_128B:
666
644
MappedInst = ScaleVectorOffset (Inst, 2 , VectorSize, OutContext);
667
645
return ;
668
646
@@ -671,11 +649,6 @@ void HexagonAsmPrinter::HexagonProcessInstruction(MCInst &Inst,
671
649
case Hexagon::V6_vS32b_new_ai:
672
650
case Hexagon::V6_vS32b_nt_ai:
673
651
case Hexagon::V6_vS32b_nt_new_ai:
674
- case Hexagon::V6_vS32Ub_ai_128B:
675
- case Hexagon::V6_vS32b_ai_128B:
676
- case Hexagon::V6_vS32b_new_ai_128B:
677
- case Hexagon::V6_vS32b_nt_ai_128B:
678
- case Hexagon::V6_vS32b_nt_new_ai_128B:
679
652
MappedInst = ScaleVectorOffset (Inst, 1 , VectorSize, OutContext);
680
653
return ;
681
654
@@ -691,18 +664,6 @@ void HexagonAsmPrinter::HexagonProcessInstruction(MCInst &Inst,
691
664
case Hexagon::V6_vL32b_pred_pi:
692
665
case Hexagon::V6_vL32b_tmp_npred_pi:
693
666
case Hexagon::V6_vL32b_tmp_pred_pi:
694
- case Hexagon::V6_vL32b_cur_npred_pi_128B:
695
- case Hexagon::V6_vL32b_cur_pred_pi_128B:
696
- case Hexagon::V6_vL32b_npred_pi_128B:
697
- case Hexagon::V6_vL32b_nt_cur_npred_pi_128B:
698
- case Hexagon::V6_vL32b_nt_cur_pred_pi_128B:
699
- case Hexagon::V6_vL32b_nt_npred_pi_128B:
700
- case Hexagon::V6_vL32b_nt_pred_pi_128B:
701
- case Hexagon::V6_vL32b_nt_tmp_npred_pi_128B:
702
- case Hexagon::V6_vL32b_nt_tmp_pred_pi_128B:
703
- case Hexagon::V6_vL32b_pred_pi_128B:
704
- case Hexagon::V6_vL32b_tmp_npred_pi_128B:
705
- case Hexagon::V6_vL32b_tmp_pred_pi_128B:
706
667
MappedInst = ScaleVectorOffset (Inst, 4 , VectorSize, OutContext);
707
668
return ;
708
669
@@ -718,18 +679,6 @@ void HexagonAsmPrinter::HexagonProcessInstruction(MCInst &Inst,
718
679
case Hexagon::V6_vL32b_pred_ai:
719
680
case Hexagon::V6_vL32b_tmp_npred_ai:
720
681
case Hexagon::V6_vL32b_tmp_pred_ai:
721
- case Hexagon::V6_vL32b_cur_npred_ai_128B:
722
- case Hexagon::V6_vL32b_cur_pred_ai_128B:
723
- case Hexagon::V6_vL32b_npred_ai_128B:
724
- case Hexagon::V6_vL32b_nt_cur_npred_ai_128B:
725
- case Hexagon::V6_vL32b_nt_cur_pred_ai_128B:
726
- case Hexagon::V6_vL32b_nt_npred_ai_128B:
727
- case Hexagon::V6_vL32b_nt_pred_ai_128B:
728
- case Hexagon::V6_vL32b_nt_tmp_npred_ai_128B:
729
- case Hexagon::V6_vL32b_nt_tmp_pred_ai_128B:
730
- case Hexagon::V6_vL32b_pred_ai_128B:
731
- case Hexagon::V6_vL32b_tmp_npred_ai_128B:
732
- case Hexagon::V6_vL32b_tmp_pred_ai_128B:
733
682
MappedInst = ScaleVectorOffset (Inst, 3 , VectorSize, OutContext);
734
683
return ;
735
684
@@ -747,20 +696,6 @@ void HexagonAsmPrinter::HexagonProcessInstruction(MCInst &Inst,
747
696
case Hexagon::V6_vS32b_nt_qpred_pi:
748
697
case Hexagon::V6_vS32b_pred_pi:
749
698
case Hexagon::V6_vS32b_qpred_pi:
750
- case Hexagon::V6_vS32Ub_npred_pi_128B:
751
- case Hexagon::V6_vS32Ub_pred_pi_128B:
752
- case Hexagon::V6_vS32b_new_npred_pi_128B:
753
- case Hexagon::V6_vS32b_new_pred_pi_128B:
754
- case Hexagon::V6_vS32b_npred_pi_128B:
755
- case Hexagon::V6_vS32b_nqpred_pi_128B:
756
- case Hexagon::V6_vS32b_nt_new_npred_pi_128B:
757
- case Hexagon::V6_vS32b_nt_new_pred_pi_128B:
758
- case Hexagon::V6_vS32b_nt_npred_pi_128B:
759
- case Hexagon::V6_vS32b_nt_nqpred_pi_128B:
760
- case Hexagon::V6_vS32b_nt_pred_pi_128B:
761
- case Hexagon::V6_vS32b_nt_qpred_pi_128B:
762
- case Hexagon::V6_vS32b_pred_pi_128B:
763
- case Hexagon::V6_vS32b_qpred_pi_128B:
764
699
MappedInst = ScaleVectorOffset (Inst, 3 , VectorSize, OutContext);
765
700
return ;
766
701
@@ -778,20 +713,6 @@ void HexagonAsmPrinter::HexagonProcessInstruction(MCInst &Inst,
778
713
case Hexagon::V6_vS32b_nt_qpred_ai:
779
714
case Hexagon::V6_vS32b_pred_ai:
780
715
case Hexagon::V6_vS32b_qpred_ai:
781
- case Hexagon::V6_vS32Ub_npred_ai_128B:
782
- case Hexagon::V6_vS32Ub_pred_ai_128B:
783
- case Hexagon::V6_vS32b_new_npred_ai_128B:
784
- case Hexagon::V6_vS32b_new_pred_ai_128B:
785
- case Hexagon::V6_vS32b_npred_ai_128B:
786
- case Hexagon::V6_vS32b_nqpred_ai_128B:
787
- case Hexagon::V6_vS32b_nt_new_npred_ai_128B:
788
- case Hexagon::V6_vS32b_nt_new_pred_ai_128B:
789
- case Hexagon::V6_vS32b_nt_npred_ai_128B:
790
- case Hexagon::V6_vS32b_nt_nqpred_ai_128B:
791
- case Hexagon::V6_vS32b_nt_pred_ai_128B:
792
- case Hexagon::V6_vS32b_nt_qpred_ai_128B:
793
- case Hexagon::V6_vS32b_pred_ai_128B:
794
- case Hexagon::V6_vS32b_qpred_ai_128B:
795
716
MappedInst = ScaleVectorOffset (Inst, 2 , VectorSize, OutContext);
796
717
return ;
797
718
}
0 commit comments