Skip to content

Commit fe8ae57

Browse files
committed
Add comment regarding bit order
1 parent 1e18869 commit fe8ae57

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_codegen_llvm/src/intrinsic.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,9 @@ fn generic_simd_intrinsic(
10721072
// * an unsigned integer
10731073
// * an array of `u8`
10741074
// 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.
10751078
let expected_int_bits = in_len.max(8);
10761079
let expected_bytes = expected_int_bits / 8 + ((expected_int_bits % 8 > 0) as u64);
10771080

0 commit comments

Comments
 (0)