Explorar el Código

Fix li bias for certain integers

master
peteraa hace 6 años
padre
commit
d6a135b206
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. +1
    -2
      src/test/scala/RISCV/Parser.scala

+ 1
- 2
src/test/scala/RISCV/Parser.scala Ver fichero

@@ -145,10 +145,9 @@ object Parser {

val multipleInstructions: Parser[List[Op]] = List(
stringWs("li") ~> (reg <~ sep, (hex | int).map(_.splitHiLo(20))).mapN{ case(rd, (hi, lo)) => {
say("hello?")
List(
ArithImm.add(rd, rd, lo),
LUI(rd, hi),
LUI(rd, if(lo>0) hi else hi+1),
)}}.map(_.widen[Op]),

// NOTE: THESE ARE NOT PSEUDO-OPS IN RISC-V32I!


Cargando…
Cancelar
Guardar