diff options
author | Andrew Waterman <andrew@sifive.com> | 2023-05-09 15:11:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 15:11:23 -0700 |
commit | 64532f9678db1fc170f57c272adaa4e698cd354c (patch) | |
tree | c5030fd901ca70dd97926e2cab314bbdbe21afd1 | |
parent | 8dd8f11510a33ada2c93d9071aecd33615445f5b (diff) | |
parent | 8ab77e8836d51851df9d227248bbec7c142730be (diff) | |
download | spike-64532f9678db1fc170f57c272adaa4e698cd354c.zip spike-64532f9678db1fc170f57c272adaa4e698cd354c.tar.gz spike-64532f9678db1fc170f57c272adaa4e698cd354c.tar.bz2 |
Merge pull request #1354 from ptomsich/ptomsich/1327-fix-fli_q-entries
Fix implementation of FLI.Q instruction
-rw-r--r-- | riscv/insns/fli_q.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/riscv/insns/fli_q.h b/riscv/insns/fli_q.h index 7ba569b..24cce41 100644 --- a/riscv/insns/fli_q.h +++ b/riscv/insns/fli_q.h @@ -1,4 +1,4 @@ -require_extension('D'); +require_extension('Q'); require_extension(EXT_ZFA); require_fp; { @@ -10,7 +10,7 @@ require_fp; [0b00100] = 0x3FF7000000000000ull, /* 1.0 * 2^-8 */ [0b00101] = 0x3FF8000000000000ull, /* 1.0 * 2^-7 */ [0b00110] = 0x3FFB000000000000ull, /* 1.0 * 2^-4 */ - [0b00111] = 0x3FF9000000000000ull, /* 1.0 * 2^-3 */ + [0b00111] = 0x3FFC000000000000ull, /* 1.0 * 2^-3 */ [0b01000] = 0x3FFD000000000000ull, /* 0.25 */ [0b01001] = 0x3FFD400000000000ull, /* 0.3125 */ [0b01010] = 0x3FFD800000000000ull, /* 0.375 */ @@ -21,14 +21,14 @@ require_fp; [0b01111] = 0x3FFEC00000000000ull, /* 0.875 */ [0b10000] = 0x3FFF000000000000ull, /* 1.0 */ [0b10001] = 0x3FFF400000000000ull, /* 1.25 */ - [0b10010] = 0x3FFFC00000000000ull, /* 1.5 */ - [0b10011] = 0x4000000000000000ull, /* 1.75 */ - [0b10100] = 0x4000400000000000ull, /* 2.0 */ - [0b10101] = 0x4000800000000000ull, /* 2.5 */ - [0b10110] = 0x4001000000000000ull, /* 3 */ - [0b10111] = 0x4002000000000000ull, /* 4 */ - [0b11000] = 0x4003000000000000ull, /* 8 */ - [0b11001] = 0x400D000000000000ull, /* 16 */ + [0b10010] = 0x3FFF800000000000ull, /* 1.5 */ + [0b10011] = 0x3FFFC00000000000ull, /* 1.75 */ + [0b10100] = 0x4000000000000000ull, /* 2.0 */ + [0b10101] = 0x4000400000000000ull, /* 2.5 */ + [0b10110] = 0x4000800000000000ull, /* 3 */ + [0b10111] = 0x4001000000000000ull, /* 4 */ + [0b11000] = 0x4002000000000000ull, /* 8 */ + [0b11001] = 0x4003000000000000ull, /* 16 */ [0b11010] = 0x4006000000000000ull, /* 2^7 */ [0b11011] = 0x4007000000000000ull, /* 2^8 */ [0b11100] = 0x400E000000000000ull, /* 2^15 */ |