[sh4] Fix typo in subp implementation in LLINT.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Sep 2013 17:13:55 +0000 (17:13 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Sep 2013 17:13:55 +0000 (17:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=121438

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-09-16
Reviewed by Andreas Kling.

* offlineasm/sh4.rb:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@155876 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/offlineasm/sh4.rb

index 64cf47f94f51f42c343cedf0be0f6c39f3715cb7..0d1a2fcc0969da9174744526260379edc648a519 100644 (file)
@@ -1,3 +1,12 @@
+2013-09-16  Julien Brianceau  <jbriance@cisco.com>
+
+        [sh4] Fix typo in subp implementation in LLINT.
+        https://bugs.webkit.org/show_bug.cgi?id=121438
+
+        Reviewed by Andreas Kling.
+
+        * offlineasm/sh4.rb:
+
 2013-09-16  Julien Brianceau  <jbriance@cisco.com>
 
         [sh4] Handle subp opcode with 3 operands and bpbeq opcode in LLINT.
index f79aca15a2c162de56345aa2201dc879e214e776..40d1e72ca8f72f5994fa5812ae9b7b57b7ff767c 100644 (file)
@@ -571,7 +571,7 @@ class Instruction
             end
         when "subi", "subp"
             if operands.size == 3
-                if operands[1] != operands[2]
+                if operands[1] == operands[2]
                     $asm.puts "neg #{sh4Operands([operands[2], operands[2]])}"
                     $asm.puts "add #{sh4Operands([operands[0], operands[2]])}"
                 else