We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e18869 commit fe8ae57Copy full SHA for fe8ae57
compiler/rustc_codegen_llvm/src/intrinsic.rs
@@ -1072,6 +1072,9 @@ fn generic_simd_intrinsic(
1072
// * an unsigned integer
1073
// * an array of `u8`
1074
// If the vector has less than 8 lanes, a u8 is returned with zeroed trailing bits.
1075
+ //
1076
+ // The bit order of the result depends on the byte endianness, LSB-first for little
1077
+ // endian and MSB-first for big endian.
1078
let expected_int_bits = in_len.max(8);
1079
let expected_bytes = expected_int_bits / 8 + ((expected_int_bits % 8 > 0) as u64);
1080
0 commit comments