Bug 83098

Summary: Offlineasm ARM backend uses the wrong mnemonic for multiply
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
the patch barraclough: review+

Description Filip Pizlo 2012-04-03 17:39:52 PDT
Patch forthcoming.
Comment 1 Filip Pizlo 2012-04-03 17:42:19 PDT
Created attachment 135469 [details]
the patch
Comment 2 Darin Adler 2012-04-03 17:43:59 PDT
Comment on attachment 135469 [details]
the patch

View in context: https://bugs.webkit.org/attachment.cgi?id=135469&action=review

> Source/JavaScriptCore/offlineasm/armv7.rb:781
>              if operands.size == 2 or operands[0] == operands[2] or operands[1] == operands[2]
> -                emitArmV7("muls", operands)
> +                emitArmV7("mul", operands)

Taking your change log comment literally, it seems this should stay “muls” since it’s passing only two operands.

> Source/JavaScriptCore/offlineasm/armv7.rb:784
> -                $asm.puts "muls #{operands[2].armV7Operand}, #{operands[2].armV7Operand}, #{operands[1].armV7Operand}"
> +                $asm.puts "mul #{operands[2].armV7Operand}, #{operands[2].armV7Operand}, #{operands[1].armV7Operand}"

This change matches your change log comment.
Comment 3 Filip Pizlo 2012-04-03 17:52:53 PDT
Landed in http://trac.webkit.org/changeset/113113