diff options
author | Tom Stellard <[email protected]> | 2012-05-23 13:19:36 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-05-24 14:12:30 -0400 |
commit | d4984f346320e64b58e38e443e5b99d09b7067bc (patch) | |
tree | 056fd343d50ca50224f620412ba04d40c0199e9b /src/gallium/drivers/radeon/AMDGPUISelLowering.cpp | |
parent | 5523502ff917803166051c8947f5dd3b23c6fcf8 (diff) |
radeon/llvm: Add custom SDNode for FRACT
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPUISelLowering.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/AMDGPUISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPUISelLowering.cpp b/src/gallium/drivers/radeon/AMDGPUISelLowering.cpp index e90d71a5c27..ced949ed3d5 100644 --- a/src/gallium/drivers/radeon/AMDGPUISelLowering.cpp +++ b/src/gallium/drivers/radeon/AMDGPUISelLowering.cpp @@ -51,6 +51,8 @@ SDValue AMDGPUTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op, return LowerIntrinsicIABS(Op, DAG); case AMDGPUIntrinsic::AMDGPU_lrp: return LowerIntrinsicLRP(Op, DAG); + case AMDGPUIntrinsic::AMDIL_fraction: + return DAG.getNode(AMDGPUISD::FRACT, DL, VT, Op.getOperand(1)); case AMDGPUIntrinsic::AMDIL_mad: return DAG.getNode(AMDILISD::MAD, DL, VT, Op.getOperand(1), Op.getOperand(2), Op.getOperand(3)); @@ -252,6 +254,7 @@ const char* AMDGPUTargetLowering::getTargetNodeName(unsigned Opcode) const switch (Opcode) { default: return AMDILTargetLowering::getTargetNodeName(Opcode); + NODE_NAME_CASE(FRACT) NODE_NAME_CASE(FMAX) NODE_NAME_CASE(SMAX) NODE_NAME_CASE(UMAX) |