llvm.org GIT mirror llvm / a1bcd56
Fixed identation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199301 91177308-0d34-0410-b5e6-96231b3b80d8 Elena Demikhovsky 6 years ago
1 changed file(s) with 11 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
1023410234 X86::CondCode CCode = (X86::CondCode)Op0.getConstantOperandVal(0);
1023510235 bool Invert = (CC == ISD::SETNE) ^
1023610236 cast(Op1)->isNullValue();
10237 if (!Invert) return Op0;
10237 if (!Invert)
10238 return Op0;
1023810239
1023910240 CCode = X86::GetOppositeBranchCondition(CCode);
1024010241 SDValue SetCC = DAG.getNode(X86ISD::SETCC, dl, MVT::i8,
10241 DAG.getConstant(CCode, MVT::i8), Op0.getOperand(1));
10242 DAG.getConstant(CCode, MVT::i8),
10243 Op0.getOperand(1));
1024210244 if (VT == MVT::i1)
1024310245 return DAG.getNode(ISD::TRUNCATE, dl, MVT::i1, SetCC);
1024410246 return SetCC;
1025310255 SDValue EFLAGS = EmitCmp(Op0, Op1, X86CC, DAG);
1025410256 EFLAGS = ConvertCmpIfNecessary(EFLAGS, DAG);
1025510257 SDValue SetCC = DAG.getNode(X86ISD::SETCC, dl, MVT::i8,
10256 DAG.getConstant(X86CC, MVT::i8), EFLAGS);
10258 DAG.getConstant(X86CC, MVT::i8), EFLAGS);
1025710259 if (VT == MVT::i1)
1025810260 return DAG.getNode(ISD::TRUNCATE, dl, MVT::i1, SetCC);
1025910261 return SetCC;
1770417706 // See X86ATTInstPrinter.cpp:printSSECC().
1770517707 unsigned x86cc = (cc0 == X86::COND_E) ? 0 : 4;
1770617708 if (Subtarget->hasAVX512()) {
17707 SDValue FSetCC = DAG.getNode(X86ISD::FSETCC, DL, MVT::i1, CMP00, CMP01,
17708 DAG.getConstant(x86cc, MVT::i8));
17709 SDValue FSetCC = DAG.getNode(X86ISD::FSETCC, DL, MVT::i1, CMP00,
17710 CMP01, DAG.getConstant(x86cc, MVT::i8));
1770917711 if (N->getValueType(0) != MVT::i1)
17710 return DAG.getNode(ISD::ZERO_EXTEND, DL, N->getValueType(0), FSetCC);
17712 return DAG.getNode(ISD::ZERO_EXTEND, DL, N->getValueType(0),
17713 FSetCC);
1771117714 return FSetCC;
1771217715 }
17713 SDValue OnesOrZeroesF = DAG.getNode(X86ISD::FSETCC, DL, CMP00.getValueType(), CMP00, CMP01,
17716 SDValue OnesOrZeroesF = DAG.getNode(X86ISD::FSETCC, DL,
17717 CMP00.getValueType(), CMP00, CMP01,
1771417718 DAG.getConstant(x86cc, MVT::i8));
1771517719 MVT IntVT = (is64BitFP ? MVT::i64 : MVT::i32);
1771617720 SDValue OnesOrZeroesI = DAG.getNode(ISD::BITCAST, DL, IntVT,