diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-02-06 15:59:09 -0500 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-02-06 15:59:09 -0500 |
commit | 6fb36c9fe59f65b81dedbeeda964ee2ce1dab806 (patch) | |
tree | 9c837b91550d082116c259d7d54044028b26b7f8 | |
parent | 28c410bae468bc068060e19f37fbf2cf84782e2a (diff) |
XXX: FIxes for const lowering
-rw-r--r-- | lib/Target/R600/AMDILISelDAGToDAG.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Target/R600/AMDILISelDAGToDAG.cpp b/lib/Target/R600/AMDILISelDAGToDAG.cpp index 071e5831f24..1bc76f5b847 100644 --- a/lib/Target/R600/AMDILISelDAGToDAG.cpp +++ b/lib/Target/R600/AMDILISelDAGToDAG.cpp @@ -254,16 +254,16 @@ SDNode *AMDGPUDAGToDAGISel::Select(SDNode *N) { } SDValue Args[] = { - CurDAG->getConstant(-1, MVT::i1), // write - CurDAG->getConstant(0, MVT::i1), // omod - CurDAG->getConstant(0, MVT::i1), // dst_rel - CurDAG->getConstant(0, MVT::i1), // clamp + CurDAG->getTargetConstant(1, MVT::i32), // write + CurDAG->getTargetConstant(0, MVT::i32), // omod + CurDAG->getTargetConstant(0, MVT::i32), // dst_rel + CurDAG->getTargetConstant(0, MVT::i32), // clamp CurDAG->getRegister(ImmReg, MVT::i32), //src0 - CurDAG->getConstant(0, MVT::i1), //src0_neg - CurDAG->getConstant(0, MVT::i1), //src0_rel - CurDAG->getConstant(0, MVT::i1), //src0_abs - CurDAG->getConstant(0, MVT::i1), //src0_sel - CurDAG->getConstant(-1, MVT::i1), // last + CurDAG->getTargetConstant(0, MVT::i32), //src0_neg + CurDAG->getTargetConstant(0, MVT::i32), //src0_rel + CurDAG->getTargetConstant(0, MVT::i32), //src0_abs + CurDAG->getTargetConstant(-1, MVT::i32), //src0_sel + CurDAG->getTargetConstant(1, MVT::i32), // last CurDAG->getRegister(AMDGPU::PRED_SEL_OFF, MVT::i32), //pred_sel CurDAG->getTargetConstant(ImmValue, MVT::i32) // imm }; |