summary refs log tree commit diff
path: root/lisc/fpintro.txt
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-28 00:20:29 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-28 00:20:29 -0500
commit76c0d34858aa418f8fa814805cbfdcaa79cdbf2f (patch)
treeaabe4d6c7bfdab575a7d08f38ddf37451655c18f /lisc/fpintro.txt
parentd6fb05a233e2ef22cd569418fe3714fc908a7b08 (diff)
downloadroux-76c0d34858aa418f8fa814805cbfdcaa79cdbf2f.tar.gz
start a plan for floating points
Diffstat (limited to 'lisc/fpintro.txt')
-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