aboutsummaryrefslogtreecommitdiff
path: root/elymas/lib/sys
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2015-12-09 15:46:28 +0100
committerDrahflow <drahflow@gmx.de>2015-12-09 15:46:28 +0100
commit96e697d1e9d57203cd8167a7b6bd8881ce1aa510 (patch)
tree9b0373325ad2becaea1a1cc2dcd239fdd4a76f8d /elymas/lib/sys
parent1e7976ef1cd453d8c499d8ea60f8c00cc46c4303 (diff)
Correctly re-box multiple outputs from register
Diffstat (limited to 'elymas/lib/sys')
-rw-r--r--elymas/lib/sys/opt.ey15
1 files changed, 9 insertions, 6 deletions
diff --git a/elymas/lib/sys/opt.ey b/elymas/lib/sys/opt.ey
index 5855cf0..b465332 100644
--- a/elymas/lib/sys/opt.ey
+++ b/elymas/lib/sys/opt.ey
@@ -1436,13 +1436,15 @@
32 /rax :shrqImm8Reg
[
- 63 reg :btsqImm8Reg
- reg :pushqReg
+ reg /rax :movqRegReg # TODO: if no other output uses the register, this move can be removed
+ 63 /rax :btsqImm8Reg
+ /rax :pushqReg
0 :jmpRel8
] len :jnzRel8
- 63 reg :btsqImm8Reg
- reg :pushqReg
+ reg /rax :movqRegReg # TODO: if no other output uses the register, this move can be removed
+ 63 /rax :btsqImm8Reg
+ /rax :pushqReg
[
availableRegisters { :pushqReg } each
@@ -1462,8 +1464,9 @@
] cat =traceCode
} {
traceCode [
- 63 reg :btsqImm8Reg
- reg :pushqReg
+ reg /rax :movqRegReg # TODO: if no other output uses the register, this move can be removed
+ 63 /rax :btsqImm8Reg
+ /rax :pushqReg
] cat =traceCode
} ? *
}