diff options
| author | David Green <david.green@arm.com> | 2022-08-11 14:20:36 +0100 |
|---|---|---|
| committer | David Green <david.green@arm.com> | 2022-08-11 14:20:36 +0100 |
| commit | a9e9dd9a3a44d88cda85d0b26778c80faf5355d2 (patch) | |
| tree | 303e913f2d0b76a2cfafb29b533a94fe7d02e8e4 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | |
| parent | 5dcf0c342bc81e9b2338ba0fd08a188d9829b7d3 (diff) | |
| download | llvm-a9e9dd9a3a44d88cda85d0b26778c80faf5355d2.zip llvm-a9e9dd9a3a44d88cda85d0b26778c80faf5355d2.tar.gz llvm-a9e9dd9a3a44d88cda85d0b26778c80faf5355d2.tar.bz2 | |
[AArch64] Add bf16 select handling
A bfloat select operation will currently crash, but is allowed from C.
This adds handling for the operation, turning it into a FCSELHrrr if
fullfp16 is present, or converting it to a FCSELSrrr if not. The
FCSELSrrr is created via using INSERT_SUBREG/EXTRACT_SUBREG to convert
the bf16 to a f32 and using the f32 pattern for FCSELSrrr. (I originally
attempted to do this via a tablegen pattern, but it appears that the
nzcv glue is places onto the wrong node, causing it to be forgotten and
incorrect scheduling to be emitted).
The FCSELSrrr can also be used for fp16 selects when +fullfp16 is not
present, which helps avoid an unnecessary promotion to f32.
Differential Revision: https://reviews.llvm.org/D131253
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
0 files changed, 0 insertions, 0 deletions
