Skip to content

Commit 0945030

Browse files
committed
Avoid using Vector API's allTrue for vectors of size 2
1 parent 02da764 commit 0945030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wasm/src/org.graalvm.wasm.jdk25/src/org/graalvm/wasm/api/Vector128OpsVectorAPI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ public int vectorToInt(ByteVector xVec, int vectorOpcode) {
537537
case Bytecode.VECTOR_I16X8_BITMASK -> bitmask(x, I16X8);
538538
case Bytecode.VECTOR_I32X4_ALL_TRUE -> all_true(x, I32X4);
539539
case Bytecode.VECTOR_I32X4_BITMASK -> bitmask(x, I32X4);
540-
case Bytecode.VECTOR_I64X2_ALL_TRUE -> all_true(x, I64X2);
540+
case Bytecode.VECTOR_I64X2_ALL_TRUE -> fallbackOps.vectorToInt(x.toArray(), vectorOpcode); // GR-68893
541541
case Bytecode.VECTOR_I64X2_BITMASK -> bitmask(x, I64X2);
542542
default -> throw CompilerDirectives.shouldNotReachHere();
543543
};

0 commit comments

Comments
 (0)