Skip to content
Unverified Commit eb48e110 authored by Oliver Stannard's avatar Oliver Stannard Committed by GitHub
Browse files

[ARM] Fix undefined behaviour in bf16->float conversion (#116985)

This was implementing the bf16->float conversion function using a
left-shift of a signed integer, so for negative floating-point values a
1 was being shifted into the sign bit of the signed integer intermediate
value. This is undefined behaviour, and was caught by UBSan.

The vector versions are code-generated via Neon builtin functions, so
probably don't have the same UB problem, but I've updated them anyway to
be consistent.

Fixes #61983.
parent 00d383ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment