src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp
changeset 51857 9978fea8a371
parent 51629 78c7f0c7827d
child 53973 db37ce5664e3
--- a/src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp	Mon Sep 24 13:51:22 2018 -0700
+++ b/src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp	Mon Sep 24 16:37:28 2018 -0700
@@ -2840,7 +2840,9 @@
 }
 
 
-void LIR_Assembler::negate(LIR_Opr left, LIR_Opr dest) {
+void LIR_Assembler::negate(LIR_Opr left, LIR_Opr dest, LIR_Opr tmp) {
+  // tmp must be unused
+  assert(tmp->is_illegal(), "wasting a register if tmp is allocated");
   assert(left->is_register(), "can only handle registers");
 
   if (left->is_single_cpu()) {