diff options
author | Andrew Waterman <aswaterman@gmail.com> | 2015-02-15 16:13:18 -0800 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2015-02-15 16:13:18 -0800 |
commit | becf30a3fb01da768c984ba60720811e4513320e (patch) | |
tree | 6592efc40e242da31be5f624628ab7be42188410 /isa/rv64uf/ldst.S | |
parent | 42573800bfc29efd7dd98ca1e88a44eb807ae33c (diff) | |
download | riscv-tests-becf30a3fb01da768c984ba60720811e4513320e.zip riscv-tests-becf30a3fb01da768c984ba60720811e4513320e.tar.gz riscv-tests-becf30a3fb01da768c984ba60720811e4513320e.tar.bz2 |
Make rv64uf-p-ldst test the sign bit, too
Diffstat (limited to 'isa/rv64uf/ldst.S')
-rw-r--r-- | isa/rv64uf/ldst.S | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/isa/rv64uf/ldst.S b/isa/rv64uf/ldst.S index f2e37f7..63123f2 100644 --- a/isa/rv64uf/ldst.S +++ b/isa/rv64uf/ldst.S @@ -13,8 +13,10 @@ RVTEST_RV64UF RVTEST_CODE_BEGIN - TEST_CASE(2, a0, 0x4000000040400000, la a1, tdat; flw f1, 4(a1); fsw f1, 12(a1); ld a0, 8(a1)) - TEST_CASE(3, a0, 0x400000003f800000, la a1, tdat; fld f2, 0(a1); fsd f2, 8(a1); ld a0, 8(a1)) + TEST_CASE(2, a0, 0x40000000deadbeef, la a1, tdat; flw f1, 4(a1); fsw f1, 20(a1); ld a0, 16(a1)) + TEST_CASE(3, a0, 0x1337d00dbf800000, la a1, tdat; flw f1, 0(a1); fsw f1, 24(a1); ld a0, 24(a1)) + TEST_CASE(4, a0, 0x40000000bf800000, la a1, tdat; fld f2, 0(a1); fsd f2, 16(a1); ld a0, 16(a1)) + TEST_CASE(5, a0, 0xc080000040400000, la a1, tdat; fld f2, 8(a1); fsd f2, 16(a1); ld a0, 16(a1)) TEST_PASSFAIL @@ -26,9 +28,13 @@ RVTEST_DATA_BEGIN TEST_DATA tdat: -.word 0x3f800000 +.word 0xbf800000 .word 0x40000000 .word 0x40400000 -.word 0x40800000 +.word 0xc0800000 +.word 0xdeadbeef +.word 0xcafebabe +.word 0xabad1dea +.word 0x1337d00d RVTEST_DATA_END |