Skip to content

Commit

Permalink
Fix typo in assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
mn416 committed May 1, 2018
1 parent 536c5f9 commit c0f798b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/Target/Encode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ void encodeInstr(Instr instr, uint32_t* high, uint32_t* low)
assert(instr.ALU.srcA.tag == REG && instr.ALU.srcA.reg.tag == ACC &&
instr.ALU.srcA.reg.regId == 0);
assert(instr.ALU.srcB.tag == REG ?
instr.ALU.srcB.reg.tag == ACC && instr.ALU.srcA.reg.regId == 5
instr.ALU.srcB.reg.tag == ACC && instr.ALU.srcB.reg.regId == 5
: true);
uint32_t mulOp = encodeMulOp(M_V8MIN) << 29;
uint32_t raddrb;
Expand Down

0 comments on commit c0f798b

Please sign in to comment.