valhalla icon indicating copy to clipboard operation
valhalla copied to clipboard

8336406: Add support for FP16 binary operations

Open Bhavana-Kilambi opened this issue 7 months ago • 5 comments

This patch adds middle end support in C2 for a few FP16 binary operations, namely - subtract, multiply, divide, min and max. It also adds aarch64 backend support for these operations.

Tested JTREG tests - hotspot/jtreg/compiler/vectorization/TestFloat16VectorOps.java, hotspot/jtreg/compiler/vectorization/TestFloat16VectorReinterpretConv.java, hotspot/jtreg/compiler/intrinsics/float16 and test/jdk/java/lang/Float16 and they successfully pass on aarch64 and x86 machines.


Progress

  • [x] Change must not contain extraneous whitespace

Issue

  • JDK-8336406: Add support for FP16 binary operations (Enhancement - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/1175/head:pull/1175
$ git checkout pull/1175

Update a local copy of the PR:
$ git checkout pull/1175
$ git pull https://git.openjdk.org/valhalla.git pull/1175/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1175

View PR using the GUI difftool:
$ git pr show -t 1175

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/1175.diff

Webrev

Link to Webrev Comment

Bhavana-Kilambi avatar Jul 23 '24 13:07 Bhavana-Kilambi