forked from Github_Repos/cvw
Added a test for denormalized FP numbers
This commit is contained in:
parent
892d6a4bcd
commit
3d5c128470
@ -31,6 +31,11 @@ main:
|
|||||||
#bseti t0, zero, 14 # turn on FPU
|
#bseti t0, zero, 14 # turn on FPU
|
||||||
csrs mstatus, t0
|
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
|
# Test legal instructions not covered elsewhere
|
||||||
flq ft0, 0(a0)
|
flq ft0, 0(a0)
|
||||||
flh ft0, 8(a0)
|
flh ft0, 8(a0)
|
||||||
@ -98,3 +103,7 @@ main:
|
|||||||
|
|
||||||
j done
|
j done
|
||||||
|
|
||||||
|
.section .data
|
||||||
|
.align 3
|
||||||
|
TestData:
|
||||||
|
.int 0x00100000 #Denormalized FP number
|
Loading…
Reference in New Issue
Block a user