diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-02-14 11:14:23 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-02-20 11:29:24 +0100 |
| commit | 711fb682c570ec84943530e6e5578ae0e409f695 (patch) | |
| tree | 4bbfaf7a014f9aa80afdd99d762bb11e79f0f521 /Documentation | |
| parent | f46c93967ce3d6f2644059e07db9755e202893bc (diff) | |
| download | sparse-dev-711fb682c570ec84943530e6e5578ae0e409f695.tar.gz | |
no need for signed & unsigned multiplication
Currently, we have OP_MULS & OP_MULU but unless it's full,
widening multiplication both must give exactly the same
result (the world run on 2's complement CPUs now, right?).
Also, the IR doesn't have widening multiplication but
only instruction where both operands and the result have
the same size.
So, since theer is no reasons to keep 2 instructions,
merge OP_MULS & OP_MULU into a single one: OP_MUL.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/IR.md | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Documentation/IR.md b/Documentation/IR.md index f18d3507..959318e2 100644 --- a/Documentation/IR.md +++ b/Documentation/IR.md @@ -54,11 +54,8 @@ Integer addition. #### OP_SUB Integer subtraction. -#### OP_MULU -Integer unsigned multiplication. - -#### OP_MULS -Integer signed multiplication. +#### OP_MUL +Integer multiplication. #### OP_DIVU Integer unsigned division. |
