diff options
author | Vincent Lejeune <vljn@ovi.com> | 2012-11-27 23:10:59 +0100 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2012-11-29 15:58:38 +0000 |
commit | 20de011d654ed8b5c445f71e11ca11f683a549b5 (patch) | |
tree | 254430ccc4e83fa1f13e83caaf56e57a297c4839 | |
parent | 621130f75f696a5f1b6f3968570a1b19f5bf2c41 (diff) |
R600: add fsqrt pattern for r600/r700
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
-rw-r--r-- | lib/Target/AMDGPU/R600Instructions.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/AMDGPU/R600Instructions.td b/lib/Target/AMDGPU/R600Instructions.td index 2a5952a5f5..211c973181 100644 --- a/lib/Target/AMDGPU/R600Instructions.td +++ b/lib/Target/AMDGPU/R600Instructions.td @@ -975,6 +975,9 @@ let Predicates = [isR600] in { let Inst{63} = 1; // BARRIER } + def : Pat<(fsqrt R600_Reg32:$src), + (MUL R600_Reg32:$src, (RECIPSQRT_CLAMPED_r600 R600_Reg32:$src))>; + defm : ExportPattern<R600_Export, 39>; } |