guile-commits
[Top][All Lists]
Advanced

[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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]