Skip to content

Commit 7a495cc

Browse files
committed
Auto merge of #123616 - bzEq:fix-be-test, r=jhpratt
[Test] issue-122805.rs should limit to little endian target In issue-122805.rs, codegen on big endian target is different from little endian target. ```llvm %0 = load <8 x i16>, ptr %value, align 2 store <8 x i16> %0, ptr %_0, align 1 ret void ``` This is expected since the conversion is unnecessary on BE target for this case.
2 parents f2c8013 + d8d1e6c commit 7a495cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: tests/codegen/issues/issue-122805.rs

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
// CHECK-NEXT: store <8 x i16>
2121
// CHECK-NEXT: ret void
2222
#[no_mangle]
23+
#[cfg(target_endian = "little")]
2324
pub fn convert(value: [u16; 8]) -> [u8; 16] {
2425
let addr16 = [
2526
value[0].to_be(),

0 commit comments

Comments
 (0)