[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 10/11: Use new instructions for u64 comparisons.
From: |
Andy Wingo |
Subject: |
[Guile-commits] 10/11: Use new instructions for u64 comparisons. |
Date: |
Sun, 29 Oct 2017 05:09:41 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 8a96b5d085fe4ca84b418abd011f71b76e8b1a29
Author: Andy Wingo <address@hidden>
Date: Fri Oct 27 16:28:49 2017 +0200
Use new instructions for u64 comparisons.
* module/language/cps/compile-bytecode.scm (compile-function): Compile
new instructions for u64 comparisons.
---
module/language/cps/compile-bytecode.scm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/module/language/cps/compile-bytecode.scm
b/module/language/cps/compile-bytecode.scm
index 2a1717c..5e477b6 100644
--- a/module/language/cps/compile-bytecode.scm
+++ b/module/language/cps/compile-bytecode.scm
@@ -451,11 +451,11 @@
(($ $primcall '= (a b)) (binary-test emit-=? a b))
(($ $primcall '>= (a b)) (binary* emit-<? emit-jge emit-jnge a b))
(($ $primcall '> (a b)) (binary* emit-<? emit-jl emit-jnl b a))
- (($ $primcall 'u64-< (a b)) (binary emit-br-if-u64-< a b))
- (($ $primcall 'u64-<= (a b)) (binary emit-br-if-u64-<= a b))
- (($ $primcall 'u64-= (a b)) (binary emit-br-if-u64-= a b))
- (($ $primcall 'u64->= (a b)) (binary emit-br-if-u64-<= b a))
- (($ $primcall 'u64-> (a b)) (binary emit-br-if-u64-< b a))
+ (($ $primcall 'u64-< (a b)) (binary* emit-u64<? emit-jl emit-jnl a b))
+ (($ $primcall 'u64-<= (a b)) (binary* emit-u64<? emit-jnl emit-jl b a))
+ (($ $primcall 'u64-= (a b)) (binary-test emit-u64=? a b))
+ (($ $primcall 'u64->= (a b)) (binary* emit-u64<? emit-jnl emit-jl a b))
+ (($ $primcall 'u64-> (a b)) (binary* emit-u64<? emit-jl emit-jnl b a))
(($ $primcall 'u64-<-scm (a b)) (binary emit-br-if-u64-<-scm a b))
(($ $primcall 'u64-<=-scm (a b)) (binary emit-br-if-u64-<=-scm a b))
(($ $primcall 'u64-=-scm (a b)) (binary emit-br-if-u64-=-scm a b))
- [Guile-commits] branch master updated (cd947a1 -> 9d1235a), Andy Wingo, 2017/10/29
- [Guile-commits] 02/11: Use tag visitors to generate assemblers, disassembly annotations, Andy Wingo, 2017/10/29
- [Guile-commits] 05/11: Emit char? instead of br-if-char, Andy Wingo, 2017/10/29
- [Guile-commits] 04/11: Emit new instructions for heap object type tests, Andy Wingo, 2017/10/29
- [Guile-commits] 08/11: Emit new eq? instruction, Andy Wingo, 2017/10/29
- [Guile-commits] 10/11: Use new instructions for u64 comparisons.,
Andy Wingo <=
- [Guile-commits] 09/11: Use new instructions for less-than, etc, Andy Wingo, 2017/10/29
- [Guile-commits] 11/11: Use new instructions for f64 comparisons, Andy Wingo, 2017/10/29
- [Guile-commits] 03/11: Heap type predicates preceded by heap-object?, Andy Wingo, 2017/10/29
- [Guile-commits] 01/11: Refactor (system base types internal) to use more macros, Andy Wingo, 2017/10/29
- [Guile-commits] 06/11: Use new instructions for null?, nil?, Andy Wingo, 2017/10/29
- [Guile-commits] 07/11: Simplify $branch to always take a $primcall, Andy Wingo, 2017/10/29