llvm-6502/test/FrontendC
Bill Wendling 1fb43c32ed The method of doing the matching with a 'select' instruction was wrong. The
original code was matching like this:

	if (match(A, m_Not(m_Value(B))))

B was already matched as a 'select' instruction. However, this isn't matching
what we think it's matching. It would match B as a 'Value', so basically
anything would match to it. In this case, a Constant matched. B was replaced
with a constant representation. And then the wrong value would be used in the
SelectInst::Create statement, causing a crash.

After thinking on this for a moment, and after Nick L. told me how the pattern
matching stuff was supposed to work, the solution was to match NOT an m_Value,
but an m_Select.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58946 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-09 23:17:42 +00:00
..
2002-01-23-LoadQISIReloadFailure.c
2002-01-24-ComplexSpaceInType.c
2002-01-24-HandleCallInsnSEGV.c
2002-02-13-ConditionalInCall.c
2002-02-13-ReloadProblem.c
2002-02-13-TypeVarNameCollision.c
2002-02-13-UnnamedLocal.c
2002-02-14-EntryNodePreds.c
2002-02-16-RenamingTest.c
2002-02-17-ArgumentAddress.c
2002-02-18-64bitConstant.c Fix some llvm-gcc warnings in testcases, mostly by adding includes or adding 2008-06-10 14:37:44 +00:00
2002-02-18-StaticData.c
2002-03-11-LargeCharInString.c
2002-03-12-ArrayInitialization.c
2002-03-12-StructInitialize.c
2002-03-12-StructInitializer.c
2002-03-14-BrokenPHINode.c
2002-03-14-BrokenSSA.c
2002-03-14-QuotesInStrConst.c
2002-04-07-SwitchStmt.c
2002-04-08-LocalArray.c Fix some llvm-gcc warnings in testcases, mostly by adding includes or adding 2008-06-10 14:37:44 +00:00
2002-04-09-StructRetVal.c
2002-04-10-StructParameters.c
2002-05-23-StaticValues.c
2002-05-23-TypeNameCollision.c
2002-05-24-Alloca.c
2002-06-25-FWriteInterfaceFailure.c
2002-07-14-MiscListTests.c
2002-07-14-MiscTests2.c
2002-07-14-MiscTests3.c Add -w to inhibit gcc warnings, which causes the 2008-06-10 18:00:09 +00:00
2002-07-14-MiscTests.c Add -w to inhibit gcc warnings, which causes the 2008-06-10 18:00:09 +00:00
2002-07-16-HardStringInit.c
2002-07-17-StringConstant.c
2002-07-29-Casts.c
2002-07-30-SubregSetAssertion.c
2002-07-30-UnionTest.c
2002-07-30-VarArgsCallFailure.c
2002-07-31-BadAssert.c
2002-07-31-SubregFailure.c
2002-08-02-UnionTest.c Fix some llvm-gcc warnings in testcases, mostly by adding includes or adding 2008-06-10 14:37:44 +00:00
2002-08-19-RecursiveLocals.c
2002-09-08-PointerShifts.c
2002-09-18-UnionProblem.c
2002-09-19-StarInLabel.c
2002-10-12-TooManyArguments.c
2002-12-15-GlobalBoolTest.c
2002-12-15-GlobalConstantTest.c
2002-12-15-GlobalRedefinition.c
2002-12-15-StructParameters.c
2003-01-30-UnionInit.c
2003-03-03-DeferredType.c
2003-06-22-UnionCrash.c
2003-06-23-GCC-fold-infinite-recursion.c
2003-06-26-CFECrash.c
2003-06-29-MultipleFunctionDefinition.c
2003-07-22-ArrayAccessTypeSafety.c
2003-08-06-BuiltinSetjmpLongjmp.c
2003-08-17-DeadCodeShortCircuit.c
2003-08-18-SigSetJmp.c
2003-08-18-StructAsValue.c
2003-08-20-BadBitfieldRef.c
2003-08-20-PrototypeMismatch.c
2003-08-20-vfork-bug.c
2003-08-21-BinOp-Type-Mismatch.c
2003-08-21-StmtExpr.c
2003-08-21-WideString.c Fix a warning, closing PR2452 2008-06-20 05:33:29 +00:00
2003-08-23-LocalUnionTest.c
2003-08-29-BitFieldStruct.c
2003-08-29-HugeCharConst.c
2003-08-29-StructLayoutBug.c
2003-08-30-AggregateInitializer.c
2003-08-30-LargeIntegerBitfieldMember.c
2003-09-18-BitfieldTests.c Add -w to inhibit gcc warnings, which causes the 2008-06-10 18:00:09 +00:00
2003-09-30-StructLayout.c
2003-10-02-UnionLValueError.c Fix some llvm-gcc warnings in testcases, mostly by adding includes or adding 2008-06-10 14:37:44 +00:00
2003-10-06-NegateExprType.c
2003-10-09-UnionInitializerBug.c
2003-10-28-ident.c
2003-10-29-AsmRename.c
2003-11-01-C99-CompoundLiteral.c
2003-11-01-EmptyStructCrash.c
2003-11-01-GlobalUnionInit.c
2003-11-03-AddrArrayElement.c
2003-11-04-EmptyStruct.c
2003-11-04-OutOfMemory.c
2003-11-08-PointerSubNotGetelementptr.c
2003-11-12-VoidString.c
2003-11-13-TypeSafety.c
2003-11-16-StaticArrayInit.c
2003-11-18-CondExprLValue.c
2003-11-19-AddressOfRegister.c
2003-11-19-BitFieldArray.c
2003-11-20-Bitfields.c
2003-11-20-ComplexDivision.c
2003-11-20-UnionBitfield.c
2003-11-26-PointerShift.c
2003-11-27-ConstructorCast.c
2003-11-27-UnionCtorInitialization.c
2003-12-14-ExternInlineSupport.c
2004-01-01-UnknownInitSize.c
2004-01-08-ExternInlineRedefine.c
2004-02-12-LargeAggregateCopy.c
2004-02-13-BuiltinFrameReturnAddress.c
2004-02-13-IllegalVararg.c Fix PR numbers, I accidentally switched two digits. 2008-06-16 09:38:23 +00:00
2004-02-13-Memset.c Make the declaration of bzero match size_t on 2008-10-29 15:57:37 +00:00
2004-02-14-ZeroInitializer.c
2004-02-20-Builtins.c Fix some llvm-gcc warnings in testcases, mostly by adding includes or adding 2008-06-10 14:37:44 +00:00
2004-03-07-ComplexDivEquals.c
2004-03-07-ExternalConstant.c
2004-03-09-LargeArrayInitializers.c
2004-03-15-SimpleIndirectGoto.c
2004-03-16-AsmRegisterCrash.c
2004-05-07-VarArrays.c
2004-05-21-IncompleteEnum.c Add -w to inhibit gcc warnings, which causes the 2008-06-10 18:00:09 +00:00
2004-06-08-OpaqueStructArg.c
2004-06-17-UnorderedBuiltins.c
2004-06-17-UnorderedCompares.c
2004-06-18-VariableLengthArrayOfStructures.c
2004-07-06-FunctionCast.c
2004-08-06-LargeStructTest.c
2004-11-25-UnnamedBitfieldPadding.c
2004-11-27-InvalidConstantExpr.c
2004-11-27-StaticFunctionRedeclare.c
2004-11-27-VariableSizeInStructure.c
2005-01-02-ConstantInits.c
2005-01-02-PointerDifference.c
2005-01-02-VAArgError-ICE.c
2005-02-20-AggregateSAVEEXPR.c
2005-02-27-MarkGlobalConstant.c
2005-03-05-OffsetOfHack.c
2005-03-06-OffsetOfStructCrash.c
2005-03-11-Prefetch.c
2005-04-09-ComplexOps.c
2005-05-06-CountBuiltins.c
2005-05-10-GlobalUnionInit.c
2005-06-15-ExpandGotoInternalProblem.c
2005-07-20-SqrtNoErrno.c Fix some llvm-gcc warnings in testcases, mostly by adding includes or adding 2008-06-10 14:37:44 +00:00
2005-07-26-UnionInitCrash.c
2005-07-28-IncorrectWeakGlobal.c
2005-09-20-ComplexConstants.c
2005-09-24-AsmUserPrefix.c
2005-09-24-BitFieldCrash.c
2005-10-18-VariableSizedElementCrash.c Fix some llvm-gcc warnings in testcases, mostly by adding includes or adding 2008-06-10 14:37:44 +00:00
2005-12-04-AttributeUsed.c
2005-12-04-DeclarationLineNumbers.c
2006-01-13-Includes.c
2006-01-13-StackSave.c
2006-01-16-BitCountIntrinsicsUnsigned.c Fix test to account for no more whitespace and that one of the matches is the 2008-09-16 06:40:04 +00:00
2006-01-23-FileScopeAsm.c
2006-03-03-MissingInitializer.c
2006-03-16-VectorCtor.c
2006-03-17-KnRMismatch.c
2006-05-01-AppleAlignmentPragma.c
2006-05-19-SingleEltReturn.c
2006-07-31-PR854.c Add -w to inhibit gcc warnings, which causes the 2008-06-10 18:00:09 +00:00
2006-09-11-BitfieldRefCrash.c
2006-09-18-fwrite-cast-crash.c Fix PR numbers, I accidentally switched two digits. 2008-06-16 09:38:23 +00:00
2006-09-21-IncompleteElementType.c
2006-09-25-DebugFilename.c
2006-09-25-DebugFilename.h
2006-09-28-SimpleAsm.c
2006-10-30-ArrayCrash.c
2006-12-14-ordered_expr.c
2007-01-06-KNR-Proto.c
2007-01-20-VectorICE.c
2007-01-24-InlineAsmCModifier.c
2007-02-04-AddrLValue-2.c
2007-02-04-AddrLValue.c
2007-02-04-EmptyStruct.c
2007-02-04-WITH_SIZE_EXPR.c
2007-02-05-nested.c
2007-02-07-AddrLabel.c
2007-02-16-VariableSizeStructArg.c Add -w to inhibit gcc warnings, which causes the 2008-06-10 18:00:09 +00:00
2007-02-16-VoidPtrDiff.c
2007-02-16-WritableStrings.c
2007-02-25-C-DotDotDot.c
2007-03-01-VarSizeArrayIdx.c
2007-03-05-DataLayout.c
2007-03-06-VarSizeInStruct1.c Add -w to inhibit gcc warnings, which causes the 2008-06-10 18:00:09 +00:00
2007-03-06-VarSizeInStruct2.c
2007-03-26-BitfieldAfterZeroWidth.c
2007-03-26-ZeroWidthBitfield.c
2007-03-27-ArrayCompatible.c
2007-03-27-VarLengthArray.c
2007-04-05-PackedBitFields-2.c
2007-04-05-PackedBitFields.c
2007-04-05-PackedStruct.c
2007-04-05-PadBeforeZeroLengthField.c
2007-04-05-UnPackedStruct.c
2007-04-11-InlineAsmStruct.c
2007-04-11-InlineAsmUnion.c
2007-04-11-InlineStorageClassC89.c
2007-04-11-InlineStorageClassC99.c
2007-04-11-PR1321.c
2007-04-13-InlineAsmStruct2.c
2007-04-13-InlineAsmUnion2.c
2007-04-14-FNoBuiltin.c
2007-04-17-ZeroSizeBitFields.c
2007-04-24-bit-not-expr.c
2007-04-24-str-const.c
2007-04-24-VolatileStructCopy.c
2007-05-07-NestedStructReturn.c
2007-05-07-PaddingElements.c
2007-05-08-PCH.c
2007-05-11-str-const.c
2007-05-15-PaddingElement.c
2007-05-16-EmptyStruct.c
2007-05-29-UnionCopy.c
2007-06-05-NoInlineAttribute.c Update test to check call instruction. 2008-09-03 17:05:49 +00:00
2007-06-15-AnnotateAttribute.c
2007-06-18-SextAttrAggregate.c
2007-07-29-RestrictPtrArg.c
2007-08-01-LoadStoreAlign.c
2007-08-21-ComplexCst.c
2007-08-22-CTTZ.c
2007-09-05-ConstCtor.c Fix a warning. 2008-06-20 05:31:04 +00:00
2007-09-12-PragmaPack.c
2007-09-14-NegatePointer.c
2007-09-17-WeakRef.c
2007-09-20-GcrootAttribute.c
2007-09-26-Alignment.c
2007-09-27-ComplexIntCompare.c Fix some llvm-gcc warnings in testcases, mostly by adding includes or adding 2008-06-10 14:37:44 +00:00
2007-09-28-PackedUnionMember.c fix a warning. 2008-06-20 05:28:56 +00:00
2007-10-01-BuildArrayRef.c
2007-10-02-VolatileArray.c
2007-10-15-VoidPtr.c
2007-10-30-Volatile.c
2007-11-07-AlignedMemcpy.c
2007-11-07-CopyAggregateAlign.c
2007-11-07-ZeroAggregateAlign.c
2007-11-27-SExtZExt.c
2007-11-28-GlobalInitializer.c
2007-12-16-AsmNoUnwind.c
2007-12-VarArrayDebug.c
2008-01-04-WideBitfield.c
2008-01-07-UnusualIntSize.c
2008-01-11-ChainConsistency.c
2008-01-21-PackedBitFields.c
2008-01-21-PackedStructField.c
2008-01-24-StructAlignAndBitFields.c
2008-01-25-ByValReadNone.c Prevent our own passes from promoting this to 2008-09-05 21:34:32 +00:00
2008-01-25-ZeroSizedAggregate.c
2008-01-28-PragmaMark.c
2008-01-28-UnionSize.c
2008-02-11-AnnotateBuiltin.c
2008-03-03-CtorAttrType.c
2008-03-05-syncPtr.c
2008-03-24-BitField-And-Alloca.c
2008-03-26-PackedBitFields.c
2008-04-08-NoExceptions.c
2008-05-06-CFECrash.c
2008-05-12-TempUsedBeforeDef.c Add -w to inhibit gcc warnings, which causes the 2008-06-10 18:00:09 +00:00
2008-05-19-AlwaysInline.c
2008-07-08-FAbsAttributes.c Testcase for PR2520. 2008-07-08 10:11:36 +00:00
2008-08-07-AlignPadding1.c Don't barf on 32 bit platforms if llvm-gcc is 2008-10-13 19:56:36 +00:00
2008-08-07-AlignPadding2.c Don't barf on 32 bit platforms if llvm-gcc is 2008-10-13 19:56:36 +00:00
2008-08-07-GEPIntToPtr.c Testcase for r54520. 2008-08-08 07:00:26 +00:00
2008-09-03-WeakAlias.c Testcase for PR1678. 2008-09-03 07:52:01 +00:00
2008-10-13-FrontendCrash.c new testcase for PR2797 2008-10-14 06:56:04 +00:00
2008-10-30-ZeroPlacement.c Testcase for PR2987. 2008-10-30 21:13:11 +00:00
2008-11-02-WeakAlias.c Testcase for PR2691 2008-11-02 16:46:17 +00:00
2008-11-08-InstCombineSelect.c The method of doing the matching with a 'select' instruction was wrong. The 2008-11-09 23:17:42 +00:00
Atomics-no64bit.c Remove "long" variants so these will pass on a 64-bit host. 2008-10-12 18:40:49 +00:00
Atomics.c Remove "long" variants so these will pass on a 64-bit host. 2008-10-12 18:40:49 +00:00
attribute_constructor.c
BasicInstrs.c
block-copy.c
dg.exp
exact-div-expr.c
extern-weak.c Make LLVM compile on DragonFly BSD (PR2499). 2008-06-26 10:36:58 +00:00
fp-logical.c Test fp not. 2008-09-24 00:50:16 +00:00
funccall.c
hidden-visibility.c
inline-asm-mrv.c
libcalls-d.c Adjust tests to expect new math intrinsics to be 2008-09-04 21:24:28 +00:00
libcalls-ld.c Adjust tests to expect new math intrinsics to be 2008-09-04 21:24:28 +00:00
libcalls.c Adjust tests to expect new math intrinsics to be 2008-09-04 21:24:28 +00:00
nested-functions.c
sret2.c
sret.c
unaligned-memcpy.c