add baseSSE test
This commit is contained in:
parent
e2eda384c8
commit
6de93fb884
2 changed files with 11 additions and 1 deletions
|
@ -23,6 +23,16 @@ CYBOZU_TEST_AUTO(setSize)
|
|||
} code;
|
||||
}
|
||||
|
||||
CYBOZU_TEST_AUTO(badSSE)
|
||||
{
|
||||
struct Code : Xbyak::CodeGenerator {
|
||||
Code()
|
||||
{
|
||||
CYBOZU_TEST_EXCEPTION(paddd(xm16, xm3), Xbyak::Error);
|
||||
}
|
||||
} code;
|
||||
}
|
||||
|
||||
CYBOZU_TEST_AUTO(compOperand)
|
||||
{
|
||||
using namespace Xbyak::util;
|
||||
|
|
|
@ -1631,7 +1631,7 @@ private:
|
|||
static inline bool isValidXMM(const Operand& op1)
|
||||
{
|
||||
// SSE instructions do not support XMM16 - XMM31
|
||||
return op1.isXMM() ? op1.getIdx() <= 15 : true;
|
||||
return !(op1.isXMM() && op1.getIdx() >= 16);
|
||||
}
|
||||
void rex(const Operand& op1, const Operand& op2 = Operand())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue