summary refs log tree commit diff
path: root/lisc/fpintro.txt
blob: 1491da5369d2d3ae0b1129737be9fee8300e4f04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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. ftosi sitof (only signed at first, truncation)
 - Convert single to/from double stod dtos

Summary:
	Add cast, ftosi sitof, stod dtos
	Add a 'floating point' bit to instructions
	Conversions from/to unsigned types are hard!
	I need to find a reference for that.