diff options
| author | David Boddie <david@boddie.org.uk> | 2022-01-15 22:40:33 +0100 |
|---|---|---|
| committer | David Boddie <david@boddie.org.uk> | 2023-11-16 16:44:27 +0100 |
| commit | 8d9c92cd784755be1717d0cedc699e133196d09c (patch) | |
| tree | 8a98ebae003e6e48fe5443ba4ebbca6252db7231 /utils/tl | |
| parent | 6cb8866cc5d948f1b305fa0c50246ae291ba7867 (diff) | |
Removed unused array entry.
Diffstat (limited to 'utils/tl')
| -rw-r--r-- | utils/tl/thumb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/tl/thumb.c b/utils/tl/thumb.c index 6cb3f86b..acc4f325 100644 --- a/utils/tl/thumb.c +++ b/utils/tl/thumb.c @@ -678,7 +678,6 @@ thumbbuildop() /* Map chipfloat indices to high and low immediate constant values for VMOV */ static int thumbfloatmap[] = { - 0x7fffffff, /* Placeholder for zero */ 0x00000007, /* 1 = 2**0 * 1 */ 0x00000000, /* 2 = 2**1 * 1 */ 0x00080000, /* 3 = 2**1 * 1.5 */ @@ -1246,7 +1245,7 @@ if(debug['G']) print("%ulx: %s: thumb\n", (ulong)(p->pc), p->from.sym->name); } else { /* VMOV immediate (ARMv7-M ARM, A7.7.236) */ o1 ^= 1 << 22; - o1 |= thumbfloatmap[rf]; + o1 |= thumbfloatmap[rf - 1]; } } else { /* VMOV register (ARMv7-M ARM, A7.7.237) */ |
