mirror of
git://c9x.me/qbe.git
synced 2026-04-06 18:39:48 +00:00
start a plan for floating points
This commit is contained in:
parent
d6fb05a233
commit
76c0d34858
17
lisc/fpintro.txt
Normal file
17
lisc/fpintro.txt
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Instructions classification:
|
||||||
|
FP : add, sub, mul, copy, par, arg
|
||||||
|
Maybe : and, or, xor, cmp(6)
|
||||||
|
Non FP: sdiv, udiv, srem, urem, store(4),
|
||||||
|
load(7), ext(7), alloc(5), parc, argc, call
|
||||||
|
|
||||||
|
15 bits for operations 32768
|
||||||
|
-1 bit for s,d 16384
|
||||||
|
|
||||||
|
New conversion instructions:
|
||||||
|
- Bitcast conversion between fp and ints. cast
|
||||||
|
- Convert fp to/from int. convf convi (only signed at first, truncation)
|
||||||
|
- Convert single to/from double convs convd
|
||||||
|
|
||||||
|
Summary:
|
||||||
|
Add bitcast, convf convi, convs convd
|
||||||
|
Add a 'floating point' bit to instructions
|
||||||
Loading…
Reference in New Issue
Block a user