Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6460965
Votes 0
Synopsis C2 does not match an instruction with swaped operands of commutative operation.
Category hotspot:compiler2
Reported Against
Release Fixed hs10(b03), 6u4(b03) (Bug ID:2171814) , 7(b03) (Bug ID:2176749)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs 6434724
Submit Date 17-AUG-2006
Description
C2 does not match an instruction with swaped operands of commutative operation.
For example, the next instruction will not be matched if a LoadI node
is the first operand:

instruct addI_rReg_mem(rRegI dst, memory src, rFlagsReg cr)
%{
  match(Set dst (AddI dst (LoadI src)));

So instead of generating one instruction "add reg, mem" C2 will generate 2:
"mov reg1, mem"
"add reg, reg1"
Posted Date : 2006-08-17 01:31:47.0
Work Around
N/A
Evaluation
See Description.
Posted Date : 2006-08-17 01:43:41.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang