< prev index next >

src/hotspot/share/opto/intrinsicnode.cpp

Print this page
rev 54087 : 8251525: AARCH64: Faster Math.signum(fp)
Reviewed-by: aph, vlivanov, adinn

*** 1,7 **** /* ! * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 96,100 **** --- 96,114 ---- const Type* EncodeISOArrayNode::Value(PhaseGVN* phase) const { if (in(0) && phase->type(in(0)) == Type::TOP) return Type::TOP; return bottom_type(); } + //------------------------------CopySign----------------------------------------- + CopySignDNode* CopySignDNode::make(PhaseGVN& gvn, Node* in1, Node* in2) { + return new CopySignDNode(in1, in2, gvn.makecon(TypeD::ZERO)); + } + + //------------------------------Signum------------------------------------------- + SignumDNode* SignumDNode::make(PhaseGVN& gvn, Node* in) { + return new SignumDNode(in, gvn.makecon(TypeD::ZERO), gvn.makecon(TypeD::ONE)); + } + + SignumFNode* SignumFNode::make(PhaseGVN& gvn, Node* in) { + return new SignumFNode(in, gvn.makecon(TypeF::ZERO), gvn.makecon(TypeF::ONE)); + } +
< prev index next >