Skip to content

Commit 04f916f

Browse files
author
Thorsten Schütt
committed
docs + >= -> >
1 parent 68d0a39 commit 04f916f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

llvm/docs/GlobalISel/GenericOpcode.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,8 @@ G_STEP_VECTOR
759759
Create a scalable vector where all lanes are linear sequences starting at 0
760760
with a given unsigned step.
761761

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.
763764

764765
.. code-block::
765766

llvm/lib/CodeGen/MachineVerifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
17381738
}
17391739

17401740
if (!MI->getOperand(1).getCImm()->getValue().isStrictlyPositive()) {
1741-
report("step must be >= 0", MI);
1741+
report("step must be > 0", MI);
17421742
break;
17431743
}
17441744

llvm/test/MachineVerifier/test_step-vector.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ body: |
1111
; CHECK: operand must be cimm
1212
%1:_(s32) = G_STEP_VECTOR %0
1313
14-
; CHECK: step must be >= 0
14+
; CHECK: step must be > 0
1515
%2:_(s32) = G_STEP_VECTOR i32 -1
1616
1717
; CHECK: Destination type must be a scalable vector

0 commit comments

Comments
 (0)