<div dir="ltr">Hello,<div><br></div><div>I have a question, possibly a bug, to ask/report regarding performance with the jdk.incubator.vector.FloatVector class.</div><div><br></div><div>Specifically, given a FloatVector fv, I've found that calling fv.mul(fv) is ~40x faster than calling fv.pow(2)</div><div><br></div><div>Here is an example JMH benchmark: <a href="https://github.com/alexklibisz/site-projects/blob/782dcd53d3ee09c93f65b660c8ed4fd030a8889a/jdk-incubator-vector-optimizations/src/main/scala/com/alexklibisz/BenchPowVsMul.scala">https://github.com/alexklibisz/site-projects/blob/782dcd53d3ee09c93f65b660c8ed4fd030a8889a/jdk-incubator-vector-optimizations/src/main/scala/com/alexklibisz/BenchPowVsMul.scala</a></div><div><br></div><div>The results look like this, on my 2018 Mac Mini, w/ Intel i7 8700B, running oracle-jdk-19.0.2:</div><div><br></div><div><img src="cid:ii_lemal7930" alt="image.png" width="488" height="94"><br></div><div><br></div><div>As far as I can tell, the two operations produce equivalent results, yet one is significantly faster than the other.</div><div><br></div><div>I'm eager to learn if this is expected, a regression, or something else.</div><div><br></div><div>Thanks,</div><div>Alex Klibisz</div></div>