IR: Remove unused microinstructions NegateLowWord and NegateHighWord
This commit is contained in:
parent
70f4235ee9
commit
1efd3a764d
4 changed files with 0 additions and 32 deletions
|
@ -1275,26 +1275,6 @@ void EmitX64::EmitCountLeadingZeros(IR::Block&, IR::Inst* inst) {
|
|||
}
|
||||
}
|
||||
|
||||
void EmitX64::EmitNegateLowWord(IR::Block&, IR::Inst* inst) {
|
||||
IR::Value a = inst->GetArg(0);
|
||||
|
||||
Xbyak::Reg32 result = reg_alloc.UseDefGpr(a, inst).cvt32();
|
||||
|
||||
code->ror(result, 16);
|
||||
code->xor(result, 0xFFFF0000);
|
||||
code->add(result, 0x00010000);
|
||||
code->ror(result, 16);
|
||||
}
|
||||
|
||||
void EmitX64::EmitNegateHighWord(IR::Block&, IR::Inst* inst) {
|
||||
IR::Value a = inst->GetArg(0);
|
||||
|
||||
Xbyak::Reg32 result = reg_alloc.UseDefGpr(a, inst).cvt32();
|
||||
|
||||
code->xor(result, 0xFFFF0000);
|
||||
code->add(result, 0x00010000);
|
||||
}
|
||||
|
||||
void EmitX64::EmitSignedSaturatedAdd(IR::Block& block, IR::Inst* inst) {
|
||||
auto overflow_inst = inst->GetAssociatedPseudoOperation(IR::Opcode::GetOverflowFromOp);
|
||||
|
||||
|
|
|
@ -328,14 +328,6 @@ Value IREmitter::CountLeadingZeros(const Value& a) {
|
|||
return Inst(Opcode::CountLeadingZeros, {a});
|
||||
}
|
||||
|
||||
Value IREmitter::NegateLowWord(const Value& a) {
|
||||
return Inst(Opcode::NegateLowWord, {a});
|
||||
}
|
||||
|
||||
Value IREmitter::NegateHighWord(const Value& a) {
|
||||
return Inst(Opcode::NegateHighWord, {a});
|
||||
}
|
||||
|
||||
IREmitter::ResultAndOverflow IREmitter::SignedSaturatedAdd(const Value& a, const Value& b) {
|
||||
auto result = Inst(Opcode::SignedSaturatedAdd, {a, b});
|
||||
auto overflow = Inst(Opcode::GetOverflowFromOp, {result});
|
||||
|
|
|
@ -133,8 +133,6 @@ public:
|
|||
Value ByteReverseHalf(const Value& a);
|
||||
Value ByteReverseDual(const Value& a);
|
||||
Value CountLeadingZeros(const Value& a);
|
||||
Value NegateLowWord(const Value& a);
|
||||
Value NegateHighWord(const Value& a);
|
||||
|
||||
ResultAndOverflow SignedSaturatedAdd(const Value& a, const Value& b);
|
||||
ResultAndOverflow SignedSaturatedSub(const Value& a, const Value& b);
|
||||
|
|
|
@ -73,8 +73,6 @@ OPCODE(ByteReverseWord, T::U32, T::U32
|
|||
OPCODE(ByteReverseHalf, T::U16, T::U16 )
|
||||
OPCODE(ByteReverseDual, T::U64, T::U64 )
|
||||
OPCODE(CountLeadingZeros, T::U32, T::U32 )
|
||||
OPCODE(NegateLowWord, T::U32, T::U32 )
|
||||
OPCODE(NegateHighWord, T::U32, T::U32 )
|
||||
|
||||
// Saturated instructions
|
||||
OPCODE(SignedSaturatedAdd, T::U32, T::U32, T::U32 )
|
||||
|
|
Loading…
Reference in a new issue