Merge pull request #241 from Dygore/main

Added a test for denormalized FP numbers
This commit is contained in:
David Harris 2023-04-13 15:31:50 -07:00 committed by GitHub
commit 7ef57b77b9

View File

@ -31,6 +31,11 @@ main:
#bseti t0, zero, 14 # turn on FPU
csrs mstatus, t0
#Pull denormalized FP number from memory and pass it to fclass.S for coverage
la t0, TestData
flw ft0, 0(t0)
fclass.s t1, ft0
# Test legal instructions not covered elsewhere
flq ft0, 0(a0)
flh ft0, 8(a0)
@ -98,3 +103,7 @@ main:
j done
.section .data
.align 3
TestData:
.int 0x00100000 #Denormalized FP number