mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 07:00:11 +01:00
radeon/llvm: add a pattern for fsqrt
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
99802519b4
commit
876b42663c
1 changed files with 3 additions and 0 deletions
|
|
@ -1018,6 +1018,9 @@ let Predicates = [isEGorCayman] in {
|
|||
def : Pat<(fp_to_uint R600_Reg32:$src),
|
||||
(FLT_TO_UINT_eg (TRUNC R600_Reg32:$src))>;
|
||||
|
||||
def : Pat<(fsqrt R600_Reg32:$src),
|
||||
(MUL R600_Reg32:$src, (RECIPSQRT_CLAMPED_eg R600_Reg32:$src))>;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Memory read/write instructions
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue