comparison src/share/vm/opto/subnode.cpp @ 6084:6759698e3140

7133857: exp() and pow() should use the x87 ISA on x86 Summary: use x87 instructions to implement exp() and pow() in interpreter/c1/c2. Reviewed-by: kvn, never, twisti
author roland
date Tue, 15 May 2012 10:10:23 +0200
parents 35acf8f0a2e4
children 8f6ce6f1049b
comparison
equal deleted inserted replaced
6057:8f972594effc 6084:6759698e3140
1312 const Type *t2 = phase->type( in(2) ); 1312 const Type *t2 = phase->type( in(2) );
1313 if( t2 == Type::TOP ) return Type::TOP; 1313 if( t2 == Type::TOP ) return Type::TOP;
1314 if( t2->base() != Type::DoubleCon ) return Type::DOUBLE; 1314 if( t2->base() != Type::DoubleCon ) return Type::DOUBLE;
1315 double d1 = t1->getd(); 1315 double d1 = t1->getd();
1316 double d2 = t2->getd(); 1316 double d2 = t2->getd();
1317 if( d1 < 0.0 ) return Type::DOUBLE;
1318 if( d2 < 0.0 ) return Type::DOUBLE;
1319 return TypeD::make( StubRoutines::intrinsic_pow( d1, d2 ) ); 1317 return TypeD::make( StubRoutines::intrinsic_pow( d1, d2 ) );
1320 } 1318 }