summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
Diffstat (limited to 'lisc')
-rw-r--r--lisc/fpintro.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/lisc/fpintro.txt b/lisc/fpintro.txt
new file mode 100644
index 0000000..b889136
--- /dev/null
+++ 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