Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
Change-Id: Icfe9619af1c9e7d5ea8cac457ccebb4eec5c34ad
  • Loading branch information
Eric Liu committed Nov 22, 2023
1 parent 68748e7 commit 268b71d
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions src/hotspot/cpu/aarch64/assembler_aarch64.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3851,25 +3851,16 @@ template<typename R, typename... Rx>
}

public:
// Unsigned unpack and extend half of vector - high half
void sve_uunpkhi(FloatRegister Zd, SIMD_RegVariant T, FloatRegister Zn) {
_sve_xunpk(/* is_unsigned */ true, /* is_high */ true, Zd, T, Zn);
#define INSN(NAME, is_unsigned, is_high) \
void NAME(FloatRegister Zd, SIMD_RegVariant T, FloatRegister Zn) { \
_sve_xunpk(is_unsigned, is_high, Zd, T, Zn); \
}

// Unsigned unpack and extend half of vector - low half
void sve_uunpklo(FloatRegister Zd, SIMD_RegVariant T, FloatRegister Zn) {
_sve_xunpk(/* is_unsigned */ true, /* is_high */ false, Zd, T, Zn);
}

// Signed unpack and extend half of vector - high half
void sve_sunpkhi(FloatRegister Zd, SIMD_RegVariant T, FloatRegister Zn) {
_sve_xunpk(/* is_unsigned */ false, /* is_high */ true, Zd, T, Zn);
}

// Signed unpack and extend half of vector - low half
void sve_sunpklo(FloatRegister Zd, SIMD_RegVariant T, FloatRegister Zn) {
_sve_xunpk(/* is_unsigned */ false, /* is_high */ false, Zd, T, Zn);
}
INSN(sve_uunpkhi, true, true ); // Unsigned unpack and extend half of vector - high half
INSN(sve_uunpklo, true, false); // Unsigned unpack and extend half of vector - low half
INSN(sve_sunpkhi, false, true ); // Signed unpack and extend half of vector - high half
INSN(sve_sunpklo, false, false); // Signed unpack and extend half of vector - low half
#undef INSN

// SVE unpack predicate elements
#define INSN(NAME, op) \
Expand Down

0 comments on commit 268b71d

Please sign in to comment.