summary refs log tree commit diff
path: root/doc/il.txt
diff options
context:
space:
mode:
authorSimon Heath <icefox@dreamquest.io>2022-06-25 17:08:42 -0400
committerQuentin Carbonneaux <quentin@c9x.me>2022-06-29 22:55:16 +0200
commit790aedb8fef1164bcfe262b566fc58dd665edf9c (patch)
tree8b6181e15ab0a19e1dd1938c71891d3733d7c120 /doc/il.txt
parentcd778b44ba11925d65ee10ff29fe22d4a45809dd (diff)
downloadroux-790aedb8fef1164bcfe262b566fc58dd665edf9c.tar.gz
Fix minor typos in IL doc
Diffstat (limited to 'doc/il.txt')
-rw-r--r--doc/il.txt22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/il.txt b/doc/il.txt
index 288c6ca..308fe45 100644
--- a/doc/il.txt
+++ b/doc/il.txt
@@ -744,11 +744,11 @@ returns 1 when the first argument is smaller than the second one.
 ~ Conversions
 ~~~~~~~~~~~~~
 
-Conversion operations allow to change the representation of
-a value, possibly modifying it if the target type cannot hold
-the value of the source type.  Conversions can extend the
-precision of a temporary (e.g., from signed 8-bit to 32-bit),
-or convert a floating point into an integer and vice versa.
+Conversion operations change the representation of a value,
+possibly modifying it if the target type cannot hold the value
+of the source type.  Conversions can extend the precision of a
+temporary (e.g., from signed 8-bit to 32-bit), or convert a
+floating point into an integer and vice versa.
 
   * `extsw`, `extuw` -- `l(w)`
   * `extsh`, `extuh` -- `I(ww)`
@@ -766,17 +766,17 @@ or convert a floating point into an integer and vice versa.
 
 Extending the precision of a temporary is done using the
 `ext` family of instructions.  Because QBE types do not
-precise the signedness (like in LLVM), extension instructions
+specify the signedness (like in LLVM), extension instructions
 exist to sign-extend and zero-extend a value.  For example,
 `extsb` takes a word argument and sign-extends the 8
 least-significant bits to a full word or long, depending on
 the return type.
 
-The instructions `exts` and `truncd` are provided to change
-the precision of a floating point value.  When the double
-argument of `truncd` cannot be represented as a
-single-precision floating point, it is truncated towards
-zero.
+The instructions `exts` (extend single) and `truncd` (truncate
+double) are provided to change the precision of a floating
+point value.  When the double argument of `truncd` cannot
+be represented as a single-precision floating point, it is
+truncated towards zero.
 
 Converting between signed integers and floating points is done
 using `stosi` (single to signed integer), `stoui` (single to