diff --git a/src/fpu/unpackinput.sv b/src/fpu/unpackinput.sv index b85077d20..68f98e900 100644 --- a/src/fpu/unpackinput.sv +++ b/src/fpu/unpackinput.sv @@ -56,7 +56,6 @@ module unpackinput ( assign ExpMax = &In[`FLEN-2:`NF]; // is the exponent all 1's end else if (`FPSIZES == 2) begin // if there are 2 floating point formats supported - //***need better names for these constants // largest format | smaller format //---------------------------------- // `FLEN | `LEN1 length of floating point number @@ -104,7 +103,6 @@ module unpackinput ( end else if (`FPSIZES == 3) begin // three floating point precsions supported - //***need better names for these constants // largest format | larger format | smallest format //--------------------------------------------------- // `FLEN | `LEN1 | `LEN2 length of floating point number @@ -196,7 +194,7 @@ module unpackinput ( // Check NaN boxing always_comb case (Fmt) - 2'b11: BadNaNBox = 0; + 2'b11: BadNaNBox = 0; 2'b01: BadNaNBox = ~&In[`Q_LEN-1:`D_LEN]; 2'b00: BadNaNBox = ~&In[`Q_LEN-1:`S_LEN]; 2'b10: BadNaNBox = ~&In[`Q_LEN-1:`H_LEN]; diff --git a/tests/custom/debug/Makefile b/tests/custom/debug/Makefile index a63fb3b11..900f5b5e3 100644 --- a/tests/custom/debug/Makefile +++ b/tests/custom/debug/Makefile @@ -11,7 +11,7 @@ TARGET = debug $(TARGET).objdump: $(TARGET).elf riscv64-unknown-elf-objdump -D $(TARGET).elf > $(TARGET).objdump -$(TARGET): $(TARGET).S Makefile +$(TARGET).elf: $(TARGET).S Makefile riscv64-unknown-elf-gcc -g -o $(TARGET).elf -march=rv64gc -mabi=lp64 -mcmodel=medany \ -nostartfiles -T../../link/link.ld $(TARGET).S diff --git a/tests/custom/debug/debug.S b/tests/custom/debug/debug.S index aadbcac64..e493cab74 100644 --- a/tests/custom/debug/debug.S +++ b/tests/custom/debug/debug.S @@ -6,7 +6,7 @@ # openhwgroup/cvw Issue #55 li x1, 0x7ff0000000000001 fmv.w.x f4, x1 -li x1, 7ff8000000000000 +li x1, 0x7ff8000000000000 fmv.w.x f9, x1 fsgnjx.s f12,f9,f4 # expected f 0xffffffff7fc00000