"andr $tmp, T8B, $src1, $src2\t# src2 is maskAllTrue\n\t"
"notr $tmp, T8B, $tmp\n\t"
"addv $tmp, T8B, $tmp\n\t"
"umov $dst, $tmp, B, 0\n\t"
"cmp $dst, 0\n\t"
"cset $dst"
Could be optimized to:
"uminv $tmp, T8B, $src1\n\t"
"umov $dst, $tmp, B, 0\n\t"
"cmp $dst, 0xff\n\t"
"cset $dst"
jmh:
https://github.com/openjdk/panama-vector/blob/vectorIntrinsics/test/jdk/jdk/incubator/vector/benchmark/src/main/java/benchmark/bigdata/BooleanArrayCheck.java
"notr $tmp, T8B, $tmp\n\t"
"addv $tmp, T8B, $tmp\n\t"
"umov $dst, $tmp, B, 0\n\t"
"cmp $dst, 0\n\t"
"cset $dst"
Could be optimized to:
"uminv $tmp, T8B, $src1\n\t"
"umov $dst, $tmp, B, 0\n\t"
"cmp $dst, 0xff\n\t"
"cset $dst"
jmh:
https://github.com/openjdk/panama-vector/blob/vectorIntrinsics/test/jdk/jdk/incubator/vector/benchmark/src/main/java/benchmark/bigdata/BooleanArrayCheck.java