qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 76c0d34858aa418f8fa814805cbfdcaa79cdbf2f
parent d6fb05a233e2ef22cd569418fe3714fc908a7b08
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Sat, 28 Nov 2015 00:20:29 -0500

start a plan for floating points

Diffstat:
Alisc/fpintro.txt | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/lisc/fpintro.txt b/lisc/fpintro.txt @@ -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