From 667cdba2118cf82e0027bf44314c9d1334d00840 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 25 May 2012 10:59:52 -0400 Subject: radeon/llvm: Use a custom inserter to lower FNEG --- src/gallium/drivers/radeon/R600ISelLowering.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gallium/drivers/radeon/R600ISelLowering.cpp') diff --git a/src/gallium/drivers/radeon/R600ISelLowering.cpp b/src/gallium/drivers/radeon/R600ISelLowering.cpp index 59a2bb1cb28..de60a2d0e59 100644 --- a/src/gallium/drivers/radeon/R600ISelLowering.cpp +++ b/src/gallium/drivers/radeon/R600ISelLowering.cpp @@ -115,6 +115,13 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter( .addOperand(MI->getOperand(1)); break; + case AMDIL::FNEG_R600: + MI->getOperand(1).addTargetFlag(MO_FLAG_NEG); + BuildMI(*BB, I, BB->findDebugLoc(I), TII->get(AMDIL::MOV)) + .addOperand(MI->getOperand(0)) + .addOperand(MI->getOperand(1)); + break; + case AMDIL::R600_LOAD_CONST: { int64_t RegIndex = MI->getOperand(1).getImm(); -- cgit v1.2.3