History

Fix minor typos in IL doc

Simon Heath committed 4 years ago

Commit 790aedb1 parent cd778b41 file · +11 −11Browse files

Unified · Split

doc/il.txt+11−11
@@ -744,11 +744,11 @@ returns 1 when the first argument is smaller than the second one. · 743 unmodified lines
744744 ~ Conversions
745745 ~~~~~~~~~~~~~
746746
747−Conversion operations allow to change the representation of
748−a value, possibly modifying it if the target type cannot hold
749−the value of the source type. Conversions can extend the
750−precision of a temporary (e.g., from signed 8-bit to 32-bit),
751−or convert a floating point into an integer and vice versa.
747+Conversion operations change the representation of a value,
748+possibly modifying it if the target type cannot hold the value
749+of the source type. Conversions can extend the precision of a
750+temporary (e.g., from signed 8-bit to 32-bit), or convert a
751+floating point into an integer and vice versa.
752752
753753 * `extsw`, `extuw` -- `l(w)`
754754 * `extsh`, `extuh` -- `I(ww)`
@@ -766,17 +766,17 @@ or convert a floating point into an integer and vice versa. · 11 unmodified lines
766766
767767 Extending the precision of a temporary is done using the
768768 `ext` family of instructions. Because QBE types do not
769−precise the signedness (like in LLVM), extension instructions
769+specify the signedness (like in LLVM), extension instructions
770770 exist to sign-extend and zero-extend a value. For example,
771771 `extsb` takes a word argument and sign-extends the 8
772772 least-significant bits to a full word or long, depending on
773773 the return type.
774774
775−The instructions `exts` and `truncd` are provided to change
776−the precision of a floating point value. When the double
777−argument of `truncd` cannot be represented as a
778−single-precision floating point, it is truncated towards
779−zero.
775+The instructions `exts` (extend single) and `truncd` (truncate
776+double) are provided to change the precision of a floating
777+point value. When the double argument of `truncd` cannot
778+be represented as a single-precision floating point, it is
779+truncated towards zero.
780780
781781 Converting between signed integers and floating points is done
782782 using `stosi` (single to signed integer), `stoui` (single to

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t