--- a/hotspot/src/cpu/sparc/vm/sparc.ad Sat Jan 07 10:39:23 2012 -0800
+++ b/hotspot/src/cpu/sparc/vm/sparc.ad Sat Jan 07 13:26:43 2012 -0800
@@ -10274,24 +10274,24 @@
// ============================================================================
// inlined locking and unlocking
-instruct cmpFastLock(flagsRegP pcc, iRegP object, iRegP box, iRegP scratch2, o7RegP scratch ) %{
+instruct cmpFastLock(flagsRegP pcc, iRegP object, o1RegP box, iRegP scratch2, o7RegP scratch ) %{
match(Set pcc (FastLock object box));
- effect(KILL scratch, TEMP scratch2);
+ effect(TEMP scratch2, USE_KILL box, KILL scratch);
ins_cost(100);
- format %{ "FASTLOCK $object, $box; KILL $scratch, $scratch2, $box" %}
+ format %{ "FASTLOCK $object,$box\t! kills $box,$scratch,$scratch2" %}
ins_encode( Fast_Lock(object, box, scratch, scratch2) );
ins_pipe(long_memory_op);
%}
-instruct cmpFastUnlock(flagsRegP pcc, iRegP object, iRegP box, iRegP scratch2, o7RegP scratch ) %{
+instruct cmpFastUnlock(flagsRegP pcc, iRegP object, o1RegP box, iRegP scratch2, o7RegP scratch ) %{
match(Set pcc (FastUnlock object box));
- effect(KILL scratch, TEMP scratch2);
+ effect(TEMP scratch2, USE_KILL box, KILL scratch);
ins_cost(100);
- format %{ "FASTUNLOCK $object, $box; KILL $scratch, $scratch2, $box" %}
+ format %{ "FASTUNLOCK $object,$box\t! kills $box,$scratch,$scratch2" %}
ins_encode( Fast_Unlock(object, box, scratch, scratch2) );
ins_pipe(long_memory_op);
%}