diff options
author | Michel Danzer <michel.daenzer@amd.com> | 2013-04-10 17:17:56 +0000 |
---|---|---|
committer | Michel Danzer <michel.daenzer@amd.com> | 2013-04-10 17:17:56 +0000 |
commit | b187f8cd1ce98e40405ce8acf49997444646408a (patch) | |
tree | cee5c11b1e4148a067f80ef55f71b5c19e4eaaf1 /lib/Target/R600/R600Instructions.td | |
parent | 74adad6de8cf947257a53bb08364fa0f4f71b10e (diff) |
R600/SI: Add pattern for AMDGPUurecip
21 more little piglits with radeonsi.
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/R600Instructions.td')
-rw-r--r-- | lib/Target/R600/R600Instructions.td | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/R600/R600Instructions.td b/lib/Target/R600/R600Instructions.td index b4c45e18fc1..8ede6ccc5a2 100644 --- a/lib/Target/R600/R600Instructions.td +++ b/lib/Target/R600/R600Instructions.td @@ -1923,10 +1923,11 @@ def : COS_PAT <COS_cm>; defm DIV_cm : DIV_Common<RECIP_IEEE_cm>; // RECIP_UINT emulation for Cayman +// The multiplication scales from [0,1] to the unsigned integer range def : Pat < (AMDGPUurecip R600_Reg32:$src0), (FLT_TO_UINT_eg (MUL_IEEE (RECIP_IEEE_cm (UINT_TO_FLT_eg R600_Reg32:$src0)), - (MOV_IMM_I32 0x4f800000))) + (MOV_IMM_I32 CONST.FP_UINT_MAX_PLUS_1))) >; |