File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -759,7 +759,8 @@ G_STEP_VECTOR
759
759
Create a scalable vector where all lanes are linear sequences starting at 0
760
760
with a given unsigned step.
761
761
762
- The type of the operand must be equal to the vector element type.
762
+ The type of the operand must be equal to the vector element type. Arithmetic
763
+ is performed modulo the bitwidth of the element.
763
764
764
765
.. code-block ::
765
766
Original file line number Diff line number Diff line change @@ -1738,7 +1738,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
1738
1738
}
1739
1739
1740
1740
if (!MI->getOperand (1 ).getCImm ()->getValue ().isStrictlyPositive ()) {
1741
- report (" step must be >= 0" , MI);
1741
+ report (" step must be > 0" , MI);
1742
1742
break ;
1743
1743
}
1744
1744
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ body: |
11
11
; CHECK: operand must be cimm
12
12
%1:_(s32) = G_STEP_VECTOR %0
13
13
14
- ; CHECK: step must be >= 0
14
+ ; CHECK: step must be > 0
15
15
%2:_(s32) = G_STEP_VECTOR i32 -1
16
16
17
17
; CHECK: Destination type must be a scalable vector
You can’t perform that action at this time.
0 commit comments