Skip to content

Commit 2831475

Browse files
committed
Check for the extended mnemonic
It is what objdump produces usually.
1 parent d1ba68a commit 2831475

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coresimd/powerpc64/vsx.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,11 @@ mod sealed {
231231
unsafe fn vec_xxpermdi(self, b: Self, dm: u8) -> Self;
232232
}
233233

234+
// xxpermdi has an big-endian bias and extended mnemonics
234235
#[inline]
235236
#[target_feature(enable = "vsx")]
236-
#[cfg_attr(test, assert_instr(xxpermdi, dm = 0x0))]
237+
#[cfg_attr(and(test, target_endian="little"), assert_instr(xxmrgld, dm = 0x0))]
238+
#[cfg_attr(and(test, target_endian="big"), assert_instr(xxspltd, dm = 0x0))]
237239
unsafe fn xxpermdi(a: i64x2, b: i64x2, dm: u8) -> i64x2 {
238240
match dm & 0b11 {
239241
0 => simd_shuffle2(a, b, [0b00, 0b10]),

0 commit comments

Comments
 (0)