Skip to content

Commit

Permalink
Check for the extended mnemonic
Browse files Browse the repository at this point in the history
It is what objdump produces usually.
  • Loading branch information
lu-zero committed May 17, 2018
1 parent d1ba68a commit 2831475
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coresimd/powerpc64/vsx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,11 @@ mod sealed {
unsafe fn vec_xxpermdi(self, b: Self, dm: u8) -> Self;
}

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

0 comments on commit 2831475

Please sign in to comment.