Added more tests
This commit is contained in:
parent
c4d763839a
commit
f4b0020c49
12 changed files with 205 additions and 39 deletions
|
@ -117,7 +117,7 @@ func (c *compiler) compileARM(x asm.Instruction) {
|
|||
switch x.Type {
|
||||
case asm.TypeRegisterNumber:
|
||||
operand := c.assembler.Param.RegisterNumber[x.Index]
|
||||
c.append(arm.SubRegisterNumber(0b11111, operand.Register, operand.Number))
|
||||
c.append(arm.CompareRegisterNumber(operand.Register, operand.Number))
|
||||
case asm.TypeRegisterRegister:
|
||||
panic("not implemented")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue