File tree Expand file tree Collapse file tree 2 files changed +688
-0
lines changed
test/CodeGen/RISCV/GlobalISel/regbankselect/rvv Expand file tree Collapse file tree 2 files changed +688
-0
lines changed Original file line number Diff line number Diff line change @@ -488,6 +488,19 @@ RISCVRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
488
488
OpdsMapping[1 ] = GPRValueMapping;
489
489
break ;
490
490
}
491
+ case TargetOpcode::G_ICMP: {
492
+ if (MRI.getType (MI.getOperand (0 ).getReg ()).isVector ()) {
493
+ LLT DstTy = MRI.getType (MI.getOperand (0 ).getReg ());
494
+ LLT SrcTy = MRI.getType (MI.getOperand (2 ).getReg ());
495
+ OpdsMapping[0 ] =
496
+ getVRBValueMapping (DstTy.getSizeInBits ().getKnownMinValue ());
497
+ OpdsMapping[2 ] = OpdsMapping[3 ] =
498
+ getVRBValueMapping (SrcTy.getSizeInBits ().getKnownMinValue ());
499
+ } else {
500
+ OpdsMapping[0 ] = OpdsMapping[2 ] = OpdsMapping[3 ] = GPRValueMapping;
501
+ }
502
+ break ;
503
+ }
491
504
case TargetOpcode::G_FCMP: {
492
505
LLT Ty = MRI.getType (MI.getOperand (2 ).getReg ());
493
506
You can’t perform that action at this time.
0 commit comments