summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/offlineasm
diff options
context:
space:
mode:
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>2013-09-16 17:13:55 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-17 16:06:48 +0200
commitdd6c186c0335402315d2a88eed661e1b9958ed44 (patch)
tree177ee961148495fd286c3bd83faa4223be7e073c /Source/JavaScriptCore/offlineasm
parentbc425620d469b437c3045ddf383a54920e1bea03 (diff)
downloadqtwebkit-dd6c186c0335402315d2a88eed661e1b9958ed44.tar.gz
[sh4] Fix typo in subp implementation in LLINT.
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: Change-Id: Ic3fb73ae9d40024652b07831562abab6347249ec git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155876 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/offlineasm')
-rw-r--r--Source/JavaScriptCore/offlineasm/sh4.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/JavaScriptCore/offlineasm/sh4.rb b/Source/JavaScriptCore/offlineasm/sh4.rb
index 3abfd3484..84a8435cc 100644
--- a/Source/JavaScriptCore/offlineasm/sh4.rb
+++ b/Source/JavaScriptCore/offlineasm/sh4.rb
@@ -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