From d321cdfc1cb4a4380ba4a1c5e14f8481eb2d6bcc Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Thu, 31 Jul 2014 00:10:27 +0000 Subject: [PATCH] verify-uselistorder: Add RUN lines to cases in test/Assembly Add RUN line for `verify-uselistorder` to every test in `test/Assembly`, unless it's a negative check (assembler rejects it) or verification fails. There are three files that verification fails on (so I've left out the RUN lines): - 2002-08-22-DominanceProblem.ll - ConstantExprFold.ll - ConstantExprFoldCast.ll This is part of PR5680. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214365 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Assembler/2002-03-08-NameCollision.ll | 1 + test/Assembler/2002-03-08-NameCollision2.ll | 1 + test/Assembler/2002-04-07-HexFloatConstants.ll | 1 + test/Assembler/2002-04-07-InfConstant.ll | 1 + test/Assembler/2002-04-29-NameBinding.ll | 1 + test/Assembler/2002-05-02-InvalidForwardRef.ll | 1 + test/Assembler/2002-07-14-OpaqueType.ll | 1 + test/Assembler/2002-07-25-QuoteInString.ll | 1 + test/Assembler/2002-07-25-ReturnPtrFunction.ll | 1 + test/Assembler/2002-07-31-SlashInString.ll | 1 + test/Assembler/2002-08-15-CastAmbiguity.ll | 1 + test/Assembler/2002-08-15-ConstantExprProblem.ll | 1 + test/Assembler/2002-08-15-UnresolvedGlobalReference.ll | 1 + test/Assembler/2002-08-16-ConstExprInlined.ll | 1 + test/Assembler/2002-08-19-BytecodeReader.ll | 1 + test/Assembler/2002-10-08-LargeArrayPerformance.ll | 1 + test/Assembler/2002-10-13-ConstantEncodingProblem.ll | 1 + test/Assembler/2002-12-15-GlobalResolve.ll | 1 + test/Assembler/2003-01-30-UnsignedString.ll | 1 + test/Assembler/2003-04-25-UnresolvedGlobalReference.ll | 1 + test/Assembler/2003-05-03-BytecodeReaderProblem.ll | 1 + test/Assembler/2003-05-12-MinIntProblem.ll | 1 + test/Assembler/2003-05-15-AssemblerProblem.ll | 1 + test/Assembler/2003-05-15-SwitchBug.ll | 1 + test/Assembler/2003-05-21-ConstantShiftExpr.ll | 1 + test/Assembler/2003-05-21-EmptyStructTest.ll | 1 + test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll | 1 + test/Assembler/2003-08-21-ConstantExprCast-Fold.ll | 1 + test/Assembler/2003-11-05-ConstantExprShift.ll | 1 + test/Assembler/2003-11-12-ConstantExprCast.ll | 1 + test/Assembler/2004-01-11-getelementptrfolding.ll | 1 + test/Assembler/2004-01-20-MaxLongLong.ll | 1 + test/Assembler/2004-02-01-NegativeZero.ll | 1 + test/Assembler/2004-02-27-SelfUseAssertError.ll | 1 + test/Assembler/2004-03-07-FunctionAddressAlignment.ll | 1 + test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll | 1 + test/Assembler/2004-06-07-VerifierBug.ll | 1 + test/Assembler/2004-10-22-BCWriterUndefBug.ll | 1 + test/Assembler/2005-01-03-FPConstantDisassembly.ll | 1 + test/Assembler/2005-01-31-CallingAggregateFunction.ll | 1 + test/Assembler/2005-05-05-OpaqueUndefValues.ll | 1 + test/Assembler/2005-12-21-ZeroInitVector.ll | 1 + test/Assembler/2006-12-09-Cast-To-Bool.ll | 1 + test/Assembler/2007-01-05-Cmp-ConstExpr.ll | 1 + test/Assembler/2007-03-19-NegValue.ll | 1 + test/Assembler/2007-04-20-AlignedLoad.ll | 1 + test/Assembler/2007-04-20-AlignedStore.ll | 1 + test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll | 1 + test/Assembler/2007-05-21-Escape.ll | 1 + test/Assembler/2007-07-19-ParamAttrAmbiguity.ll | 1 + test/Assembler/2007-09-10-AliasFwdRef.ll | 1 + test/Assembler/2007-09-29-GC.ll | 1 + test/Assembler/2007-12-11-AddressSpaces.ll | 1 + test/Assembler/2008-01-11-VarargAttrs.ll | 1 + test/Assembler/2008-07-10-APInt.ll | 1 + test/Assembler/2008-09-02-FunctionNotes.ll | 1 + test/Assembler/2008-09-29-RetAttr.ll | 1 + test/Assembler/2008-10-14-QuoteInName.ll | 1 + test/Assembler/2009-02-01-UnnamedForwardRef.ll | 1 + test/Assembler/2009-02-28-CastOpc.ll | 1 + test/Assembler/2009-02-28-StripOpaqueName.ll | 1 + test/Assembler/2009-03-24-ZextConstantExpr.ll | 1 + test/Assembler/2009-07-24-ZeroArgGEP.ll | 1 + test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll | 1 + test/Assembler/ConstantExprFoldSelect.ll | 1 + test/Assembler/ConstantExprNoFold.ll | 1 + test/Assembler/MultipleReturnValueType.ll | 1 + test/Assembler/addrspacecast-alias.ll | 1 + test/Assembler/aggregate-constant-values.ll | 1 + test/Assembler/aggregate-return-single-value.ll | 1 + test/Assembler/align-inst.ll | 1 + test/Assembler/alignstack.ll | 1 + test/Assembler/anon-functions.ll | 1 + test/Assembler/atomic.ll | 1 + test/Assembler/auto_upgrade_intrinsics.ll | 1 + test/Assembler/bcwrap.ll | 1 + test/Assembler/comment.ll | 1 + test/Assembler/externally-initialized.ll | 1 + test/Assembler/fast-math-flags.ll | 1 + test/Assembler/flags.ll | 1 + test/Assembler/functionlocal-metadata.ll | 1 + test/Assembler/getelementptr.ll | 1 + test/Assembler/global-addrspace-forwardref.ll | 1 + test/Assembler/half-constprop.ll | 1 + test/Assembler/half-conv.ll | 1 + test/Assembler/half.ll | 1 + test/Assembler/huge-array.ll | 1 + test/Assembler/inalloca.ll | 1 + test/Assembler/insertextractvalue.ll | 1 + test/Assembler/metadata.ll | 1 + test/Assembler/named-metadata.ll | 1 + test/Assembler/numbered-values.ll | 1 + test/Assembler/select.ll | 1 + test/Assembler/tls-models.ll | 1 + test/Assembler/unnamed-addr.ll | 1 + test/Assembler/unnamed.ll | 1 + test/Assembler/upgrade-loop-metadata.ll | 1 + test/Assembler/vbool-cmp.ll | 1 + test/Assembler/vector-cmp.ll | 1 + test/Assembler/vector-select.ll | 1 + test/Assembler/vector-shift.ll | 1 + test/Assembler/x86mmx.ll | 1 + 102 files changed, 102 insertions(+) diff --git a/test/Assembler/2002-03-08-NameCollision.ll b/test/Assembler/2002-03-08-NameCollision.ll index b49789b2902..958bcca1701 100644 --- a/test/Assembler/2002-03-08-NameCollision.ll +++ b/test/Assembler/2002-03-08-NameCollision.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Method arguments were being checked for collisions at the global scope before ; the method object was created by the parser. Because of this, false diff --git a/test/Assembler/2002-03-08-NameCollision2.ll b/test/Assembler/2002-03-08-NameCollision2.ll index 1f7a4e16f8b..80af53fb3ef 100644 --- a/test/Assembler/2002-03-08-NameCollision2.ll +++ b/test/Assembler/2002-03-08-NameCollision2.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Another name collision problem. Here the problem was that if a forward ; declaration for a method was found, that this would cause spurious conflicts diff --git a/test/Assembler/2002-04-07-HexFloatConstants.ll b/test/Assembler/2002-04-07-HexFloatConstants.ll index b0d7cc0e43a..22ded4f2feb 100644 --- a/test/Assembler/2002-04-07-HexFloatConstants.ll +++ b/test/Assembler/2002-04-07-HexFloatConstants.ll @@ -9,6 +9,7 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | opt -constprop | \ ; RUN: llvm-dis > %t.2 ; RUN: diff %t.1 %t.2 +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define double @test() { %tmp = fmul double 7.200000e+101, 0x427F4000 ; [#uses=1] diff --git a/test/Assembler/2002-04-07-InfConstant.ll b/test/Assembler/2002-04-07-InfConstant.ll index 71837c94378..5589392cb27 100644 --- a/test/Assembler/2002-04-07-InfConstant.ll +++ b/test/Assembler/2002-04-07-InfConstant.ll @@ -1,6 +1,7 @@ ; The output formater prints out 1.0e100 as Inf! ; ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep 0x7FF0000000000000 +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define float @test() { %tmp = fmul float 0x7FF0000000000000, 1.000000e+01 ; [#uses=1] diff --git a/test/Assembler/2002-04-29-NameBinding.ll b/test/Assembler/2002-04-29-NameBinding.ll index 7960c20ddce..7174a8e671a 100644 --- a/test/Assembler/2002-04-29-NameBinding.ll +++ b/test/Assembler/2002-04-29-NameBinding.ll @@ -7,6 +7,7 @@ ; RUN: opt < %s -globaldce -S | \ ; RUN: not grep constant ; +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @v1 = internal constant i32 5 diff --git a/test/Assembler/2002-05-02-InvalidForwardRef.ll b/test/Assembler/2002-05-02-InvalidForwardRef.ll index 234545c2936..03e3d39c207 100644 --- a/test/Assembler/2002-05-02-InvalidForwardRef.ll +++ b/test/Assembler/2002-05-02-InvalidForwardRef.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; It looks like the assembler is not forward resolving the function declaraion ; correctly. diff --git a/test/Assembler/2002-07-14-OpaqueType.ll b/test/Assembler/2002-07-14-OpaqueType.ll index 662fb0f31c1..54c517427ea 100644 --- a/test/Assembler/2002-07-14-OpaqueType.ll +++ b/test/Assembler/2002-07-14-OpaqueType.ll @@ -1,6 +1,7 @@ ; Test that opaque types are preserved correctly ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis ; +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 %Ty = type opaque diff --git a/test/Assembler/2002-07-25-QuoteInString.ll b/test/Assembler/2002-07-25-QuoteInString.ll index facc5bdae62..5ca41dddcac 100644 --- a/test/Assembler/2002-07-25-QuoteInString.ll +++ b/test/Assembler/2002-07-25-QuoteInString.ll @@ -1,5 +1,6 @@ ; Test double quotes in strings work correctly! ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis ; +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @str = internal global [6 x i8] c"\22foo\22\00" ; <[6 x i8]*> [#uses=0] diff --git a/test/Assembler/2002-07-25-ReturnPtrFunction.ll b/test/Assembler/2002-07-25-ReturnPtrFunction.ll index 6988fad8398..b200b9f7051 100644 --- a/test/Assembler/2002-07-25-ReturnPtrFunction.ll +++ b/test/Assembler/2002-07-25-ReturnPtrFunction.ll @@ -2,6 +2,7 @@ ; the right thing. ; ; RUN: llvm-as < %s | llvm-dis | llvm-as +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 declare void (i32)* @foo() diff --git a/test/Assembler/2002-07-31-SlashInString.ll b/test/Assembler/2002-07-31-SlashInString.ll index ff48258870d..92f8f90e69b 100644 --- a/test/Assembler/2002-07-31-SlashInString.ll +++ b/test/Assembler/2002-07-31-SlashInString.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Make sure that \\ works in a string initializer @Slashtest = internal global [8 x i8] c"\5Cbegin{\00" diff --git a/test/Assembler/2002-08-15-CastAmbiguity.ll b/test/Assembler/2002-08-15-CastAmbiguity.ll index c71652446d6..07eadb2b7d8 100644 --- a/test/Assembler/2002-08-15-CastAmbiguity.ll +++ b/test/Assembler/2002-08-15-CastAmbiguity.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @test(i32 %X) { call void @test( i32 6 ) diff --git a/test/Assembler/2002-08-15-ConstantExprProblem.ll b/test/Assembler/2002-08-15-ConstantExprProblem.ll index 02b9ea9adb8..e09322de10f 100644 --- a/test/Assembler/2002-08-15-ConstantExprProblem.ll +++ b/test/Assembler/2002-08-15-ConstantExprProblem.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @.LC0 = internal global [12 x i8] c"hello world\00" ; <[12 x i8]*> [#uses=1] diff --git a/test/Assembler/2002-08-15-UnresolvedGlobalReference.ll b/test/Assembler/2002-08-15-UnresolvedGlobalReference.ll index 2ba3f14a48e..2c858d84a8e 100644 --- a/test/Assembler/2002-08-15-UnresolvedGlobalReference.ll +++ b/test/Assembler/2002-08-15-UnresolvedGlobalReference.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @.LC0 = internal global [12 x i8] c"hello world\00" ; <[12 x i8]*> [#uses=1] diff --git a/test/Assembler/2002-08-16-ConstExprInlined.ll b/test/Assembler/2002-08-16-ConstExprInlined.ll index f233bacca46..9df1f46ad7a 100644 --- a/test/Assembler/2002-08-16-ConstExprInlined.ll +++ b/test/Assembler/2002-08-16-ConstExprInlined.ll @@ -9,6 +9,7 @@ ; around! ; ; RUN: llvm-as < %s | llvm-dis | llvm-as +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @.LC0 = internal global [4 x i8] c"foo\00" ; <[4 x i8]*> [#uses=1] @X = global i8* null ; [#uses=0] diff --git a/test/Assembler/2002-08-19-BytecodeReader.ll b/test/Assembler/2002-08-19-BytecodeReader.ll index e211014eb0e..8d369e5b9c1 100644 --- a/test/Assembler/2002-08-19-BytecodeReader.ll +++ b/test/Assembler/2002-08-19-BytecodeReader.ll @@ -2,6 +2,7 @@ ; "crafty" spec benchmark. ; ; RUN: opt < %s -instcombine | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 %CHESS_POSITION = type { i32, i32 } @pawn_probes = external global i32 ; [#uses=0] diff --git a/test/Assembler/2002-10-08-LargeArrayPerformance.ll b/test/Assembler/2002-10-08-LargeArrayPerformance.ll index 34a993214e9..99a264a2cc1 100644 --- a/test/Assembler/2002-10-08-LargeArrayPerformance.ll +++ b/test/Assembler/2002-10-08-LargeArrayPerformance.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; This testcase comes from the following really simple c file: ;; int foo[30000] ;;; We should not be soo slow for such a simple case! diff --git a/test/Assembler/2002-10-13-ConstantEncodingProblem.ll b/test/Assembler/2002-10-13-ConstantEncodingProblem.ll index bf3a5215434..5765e55d74b 100644 --- a/test/Assembler/2002-10-13-ConstantEncodingProblem.ll +++ b/test/Assembler/2002-10-13-ConstantEncodingProblem.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 %Domain = type { %Domain**, %Domain* } @D = global %Domain zeroinitializer ; <%Domain*> [#uses=0] diff --git a/test/Assembler/2002-12-15-GlobalResolve.ll b/test/Assembler/2002-12-15-GlobalResolve.ll index a873a6107e1..c4fa4f46086 100644 --- a/test/Assembler/2002-12-15-GlobalResolve.ll +++ b/test/Assembler/2002-12-15-GlobalResolve.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @X = external global i32* @X1 = external global %T* diff --git a/test/Assembler/2003-01-30-UnsignedString.ll b/test/Assembler/2003-01-30-UnsignedString.ll index 3c14d71621c..bd4594be563 100644 --- a/test/Assembler/2003-01-30-UnsignedString.ll +++ b/test/Assembler/2003-01-30-UnsignedString.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @spell_order = global [4 x i8] c"\FF\00\F7\00" diff --git a/test/Assembler/2003-04-25-UnresolvedGlobalReference.ll b/test/Assembler/2003-04-25-UnresolvedGlobalReference.ll index f1a5ed7b56b..d47610a1d1c 100644 --- a/test/Assembler/2003-04-25-UnresolvedGlobalReference.ll +++ b/test/Assembler/2003-04-25-UnresolvedGlobalReference.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; There should be absolutely no problem with this testcase. define i32 @test(i32 %arg1, i32 %arg2) { diff --git a/test/Assembler/2003-05-03-BytecodeReaderProblem.ll b/test/Assembler/2003-05-03-BytecodeReaderProblem.ll index f4a69116051..2d8be31acbf 100644 --- a/test/Assembler/2003-05-03-BytecodeReaderProblem.ll +++ b/test/Assembler/2003-05-03-BytecodeReaderProblem.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @test() { %tmp.123 = trunc i64 0 to i32 ; [#uses=0] diff --git a/test/Assembler/2003-05-12-MinIntProblem.ll b/test/Assembler/2003-05-12-MinIntProblem.ll index ebe169013b4..71b4f83ca0b 100644 --- a/test/Assembler/2003-05-12-MinIntProblem.ll +++ b/test/Assembler/2003-05-12-MinIntProblem.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | grep -- -2147483648 +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define i32 @foo() { ret i32 -2147483648 diff --git a/test/Assembler/2003-05-15-AssemblerProblem.ll b/test/Assembler/2003-05-15-AssemblerProblem.ll index 146ce6534d7..6651d4050a0 100644 --- a/test/Assembler/2003-05-15-AssemblerProblem.ll +++ b/test/Assembler/2003-05-15-AssemblerProblem.ll @@ -1,6 +1,7 @@ ; This bug was caused by two CPR's existing for the same global variable, ; colliding in the Module level CPR map. ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @test() { call void (...)* bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* null, i32 0 ) diff --git a/test/Assembler/2003-05-15-SwitchBug.ll b/test/Assembler/2003-05-15-SwitchBug.ll index 3768d9c9a67..9be311e0599 100644 --- a/test/Assembler/2003-05-15-SwitchBug.ll +++ b/test/Assembler/2003-05-15-SwitchBug.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Check minimal switch statement diff --git a/test/Assembler/2003-05-21-ConstantShiftExpr.ll b/test/Assembler/2003-05-21-ConstantShiftExpr.ll index 40b96514e04..fcb0cfbbd08 100644 --- a/test/Assembler/2003-05-21-ConstantShiftExpr.ll +++ b/test/Assembler/2003-05-21-ConstantShiftExpr.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Test that shift instructions can be used in constant expressions. global i32 3670016 diff --git a/test/Assembler/2003-05-21-EmptyStructTest.ll b/test/Assembler/2003-05-21-EmptyStructTest.ll index 26e83d931c4..17621c30ab7 100644 --- a/test/Assembler/2003-05-21-EmptyStructTest.ll +++ b/test/Assembler/2003-05-21-EmptyStructTest.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; The old C front-end never generated empty structures, now the new one ; can. For some reason we never handled them in the parser. Weird. diff --git a/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll b/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll index 50cdeedd695..0679ac35fc6 100644 --- a/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll +++ b/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll @@ -1,4 +1,5 @@ ; RUN: opt < %s -instcombine -simplifycfg -S | not grep br +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @.str_1 = internal constant [6 x i8] c"_Bool\00" ; <[6 x i8]*> [#uses=2] diff --git a/test/Assembler/2003-08-21-ConstantExprCast-Fold.ll b/test/Assembler/2003-08-21-ConstantExprCast-Fold.ll index b76f7745849..ff84698e6e0 100644 --- a/test/Assembler/2003-08-21-ConstantExprCast-Fold.ll +++ b/test/Assembler/2003-08-21-ConstantExprCast-Fold.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | not grep getelementptr +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @A = external global { float } ; <{ float }*> [#uses=2] global i32* bitcast ({ float }* @A to i32*) ; :0 [#uses=0] diff --git a/test/Assembler/2003-11-05-ConstantExprShift.ll b/test/Assembler/2003-11-05-ConstantExprShift.ll index 86b093e3512..17587c64191 100644 --- a/test/Assembler/2003-11-05-ConstantExprShift.ll +++ b/test/Assembler/2003-11-05-ConstantExprShift.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define i32 @test() { ret i32 ashr (i32 ptrtoint (i32 ()* @test to i32), i32 2) diff --git a/test/Assembler/2003-11-12-ConstantExprCast.ll b/test/Assembler/2003-11-12-ConstantExprCast.ll index 47a53537f87..12b4eadd7b6 100644 --- a/test/Assembler/2003-11-12-ConstantExprCast.ll +++ b/test/Assembler/2003-11-12-ConstantExprCast.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | not grep " bitcast (" +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @.Base64_1 = external constant [4 x i8] ; <[4 x i8]*> [#uses=1] diff --git a/test/Assembler/2004-01-11-getelementptrfolding.ll b/test/Assembler/2004-01-11-getelementptrfolding.ll index 5249d0e5bcc..fb33d8cb4ef 100644 --- a/test/Assembler/2004-01-11-getelementptrfolding.ll +++ b/test/Assembler/2004-01-11-getelementptrfolding.ll @@ -1,5 +1,6 @@ ; RUN: llvm-as < %s | llvm-dis | \ ; RUN: not grep "getelementptr.*getelementptr" +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 %struct.TTriangleItem = type { i8*, i8*, [3 x %struct.TUVVertex] } %struct.TUVVertex = type { i16, i16, i16, i16 } diff --git a/test/Assembler/2004-01-20-MaxLongLong.ll b/test/Assembler/2004-01-20-MaxLongLong.ll index 8af5332ccc6..6c70ca1bc84 100644 --- a/test/Assembler/2004-01-20-MaxLongLong.ll +++ b/test/Assembler/2004-01-20-MaxLongLong.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | grep 9223372036854775808 +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 global i64 -9223372036854775808 diff --git a/test/Assembler/2004-02-01-NegativeZero.ll b/test/Assembler/2004-02-01-NegativeZero.ll index b28930f2852..d1a3884bf5b 100644 --- a/test/Assembler/2004-02-01-NegativeZero.ll +++ b/test/Assembler/2004-02-01-NegativeZero.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | grep -- -0.0 +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 global double 0x8000000000000000 global float -0.0 diff --git a/test/Assembler/2004-02-27-SelfUseAssertError.ll b/test/Assembler/2004-02-27-SelfUseAssertError.ll index 7052eac5cbd..f3cf577b504 100644 --- a/test/Assembler/2004-02-27-SelfUseAssertError.ll +++ b/test/Assembler/2004-02-27-SelfUseAssertError.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; %inc2 uses it's own value, but that's ok, as it's unreachable! diff --git a/test/Assembler/2004-03-07-FunctionAddressAlignment.ll b/test/Assembler/2004-03-07-FunctionAddressAlignment.ll index e3bf0bb8ac7..4c320f1b488 100644 --- a/test/Assembler/2004-03-07-FunctionAddressAlignment.ll +++ b/test/Assembler/2004-03-07-FunctionAddressAlignment.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; All of these should be eliminable diff --git a/test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll b/test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll index ab46f887be0..c40f8ede814 100644 --- a/test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll +++ b/test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define i32* @t1({ float, i32 }* %X) { %W = getelementptr { float, i32 }* %X, i32 20, i32 1 ; [#uses=0] diff --git a/test/Assembler/2004-06-07-VerifierBug.ll b/test/Assembler/2004-06-07-VerifierBug.ll index 07d2383ccff..c049a74371b 100644 --- a/test/Assembler/2004-06-07-VerifierBug.ll +++ b/test/Assembler/2004-06-07-VerifierBug.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s > /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @t() { entry: diff --git a/test/Assembler/2004-10-22-BCWriterUndefBug.ll b/test/Assembler/2004-10-22-BCWriterUndefBug.ll index 694b80b78c1..88c3c2749d0 100644 --- a/test/Assembler/2004-10-22-BCWriterUndefBug.ll +++ b/test/Assembler/2004-10-22-BCWriterUndefBug.ll @@ -1,5 +1,6 @@ ;; The bytecode writer was trying to treat undef values as ConstantArray's when ;; they looked like strings. ;; RUN: llvm-as %s -o /dev/null +;; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @G = internal global [8 x i8] undef diff --git a/test/Assembler/2005-01-03-FPConstantDisassembly.ll b/test/Assembler/2005-01-03-FPConstantDisassembly.ll index aaa776f51b8..4de4a2057d7 100644 --- a/test/Assembler/2005-01-03-FPConstantDisassembly.ll +++ b/test/Assembler/2005-01-03-FPConstantDisassembly.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | grep 1.0 +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define double @test() { ret double 1.0 ;; This should not require hex notation diff --git a/test/Assembler/2005-01-31-CallingAggregateFunction.ll b/test/Assembler/2005-01-31-CallingAggregateFunction.ll index ce769a2e9d7..7aa2c2bad97 100644 --- a/test/Assembler/2005-01-31-CallingAggregateFunction.ll +++ b/test/Assembler/2005-01-31-CallingAggregateFunction.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @test() { call {i32} @foo() diff --git a/test/Assembler/2005-05-05-OpaqueUndefValues.ll b/test/Assembler/2005-05-05-OpaqueUndefValues.ll index 8cd1419b08b..832b37e3212 100644 --- a/test/Assembler/2005-05-05-OpaqueUndefValues.ll +++ b/test/Assembler/2005-05-05-OpaqueUndefValues.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as > /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 %t = type opaque @x = global %t undef diff --git a/test/Assembler/2005-12-21-ZeroInitVector.ll b/test/Assembler/2005-12-21-ZeroInitVector.ll index d3a692c60c9..f758179808b 100644 --- a/test/Assembler/2005-12-21-ZeroInitVector.ll +++ b/test/Assembler/2005-12-21-ZeroInitVector.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s > /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define <4 x i32> @foo() { ret <4 x i32> zeroinitializer diff --git a/test/Assembler/2006-12-09-Cast-To-Bool.ll b/test/Assembler/2006-12-09-Cast-To-Bool.ll index a70262c802c..5571e115cef 100644 --- a/test/Assembler/2006-12-09-Cast-To-Bool.ll +++ b/test/Assembler/2006-12-09-Cast-To-Bool.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | grep bitcast +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define i1 @main(i32 %X) { %res = bitcast i1 true to i1 diff --git a/test/Assembler/2007-01-05-Cmp-ConstExpr.ll b/test/Assembler/2007-01-05-Cmp-ConstExpr.ll index e3f67ba13af..22c7a281add 100644 --- a/test/Assembler/2007-01-05-Cmp-ConstExpr.ll +++ b/test/Assembler/2007-01-05-Cmp-ConstExpr.ll @@ -1,5 +1,6 @@ ; Test Case for PR1080 ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @str = internal constant [4 x i8] c"-ga\00" ; <[4 x i8]*> [#uses=2] diff --git a/test/Assembler/2007-03-19-NegValue.ll b/test/Assembler/2007-03-19-NegValue.ll index 64eb3cb5903..908b3856747 100644 --- a/test/Assembler/2007-03-19-NegValue.ll +++ b/test/Assembler/2007-03-19-NegValue.ll @@ -1,5 +1,6 @@ ; Test whether negative values > 64 bits retain their negativeness. ; RUN: llvm-as < %s | llvm-dis | grep "add i65.*, -1" +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define i65 @testConsts(i65 %N) { %a = add i65 %N, -1 diff --git a/test/Assembler/2007-04-20-AlignedLoad.ll b/test/Assembler/2007-04-20-AlignedLoad.ll index 98a5428a97d..2586a089c12 100644 --- a/test/Assembler/2007-04-20-AlignedLoad.ll +++ b/test/Assembler/2007-04-20-AlignedLoad.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | grep "align 1024" +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define i32 @test(i32* %arg) { entry: diff --git a/test/Assembler/2007-04-20-AlignedStore.ll b/test/Assembler/2007-04-20-AlignedStore.ll index 9e4dd9fd07b..bc29298aaf4 100644 --- a/test/Assembler/2007-04-20-AlignedStore.ll +++ b/test/Assembler/2007-04-20-AlignedStore.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | grep "align 1024" +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @test(i32* %arg) { entry: diff --git a/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll b/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll index b0ca1aad86e..5f2ecc4f04c 100644 --- a/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll +++ b/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | grep "icmp.*test_weak.*null" +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; PR1358 @G = global i1 icmp ne (i32 (...)* @test_weak, i32 (...)* null) diff --git a/test/Assembler/2007-05-21-Escape.ll b/test/Assembler/2007-05-21-Escape.ll index 08681339d21..9eb1d74af24 100644 --- a/test/Assembler/2007-05-21-Escape.ll +++ b/test/Assembler/2007-05-21-Escape.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64" target triple = "x86_64-apple-darwin8" %struct.bar = type { i32 } diff --git a/test/Assembler/2007-07-19-ParamAttrAmbiguity.ll b/test/Assembler/2007-07-19-ParamAttrAmbiguity.ll index 9c7daa841ab..1bb9ad1fb1d 100644 --- a/test/Assembler/2007-07-19-ParamAttrAmbiguity.ll +++ b/test/Assembler/2007-07-19-ParamAttrAmbiguity.ll @@ -1,5 +1,6 @@ ; PR1553 ; RUN: llvm-as < %s > /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @bar() { %t = call i8 @foo( i8 10 ) zext i8 %t to i32 diff --git a/test/Assembler/2007-09-10-AliasFwdRef.ll b/test/Assembler/2007-09-10-AliasFwdRef.ll index bcb7c6fd219..7d130960f8d 100644 --- a/test/Assembler/2007-09-10-AliasFwdRef.ll +++ b/test/Assembler/2007-09-10-AliasFwdRef.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; PR1645 @__gthread_active_ptr.5335 = internal constant i8* bitcast (i32 (i32)* @__gthrw_pthread_cancel to i8*) diff --git a/test/Assembler/2007-09-29-GC.ll b/test/Assembler/2007-09-29-GC.ll index 9aefd0b0416..d0f894c3e6b 100644 --- a/test/Assembler/2007-09-29-GC.ll +++ b/test/Assembler/2007-09-29-GC.ll @@ -1,5 +1,6 @@ ; RUN: llvm-as < %s | llvm-dis | grep "@f.*gc.*shadowstack" ; RUN: llvm-as < %s | llvm-dis | grep "@g.*gc.*java" +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @f() gc "shadowstack" { entry: diff --git a/test/Assembler/2007-12-11-AddressSpaces.ll b/test/Assembler/2007-12-11-AddressSpaces.ll index 7c9b5b52984..a1fb7fafd53 100644 --- a/test/Assembler/2007-12-11-AddressSpaces.ll +++ b/test/Assembler/2007-12-11-AddressSpaces.ll @@ -3,6 +3,7 @@ ; RUN: llvm-as < %s | llvm-dis | grep "addrspace(66)" | count 2 ; RUN: llvm-as < %s | llvm-dis | grep "addrspace(11)" | count 6 ; RUN: llvm-as < %s | llvm-dis | grep "addrspace(22)" | count 5 +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 %struct.mystruct = type { i32, i32 addrspace(33)*, i32, i32 addrspace(33)* } @input = weak addrspace(42) global %struct.mystruct zeroinitializer ; <%struct.mystruct addrspace(42)*> [#uses=1] diff --git a/test/Assembler/2008-01-11-VarargAttrs.ll b/test/Assembler/2008-01-11-VarargAttrs.ll index c0aedc80b4c..dd1eed283f3 100644 --- a/test/Assembler/2008-01-11-VarargAttrs.ll +++ b/test/Assembler/2008-01-11-VarargAttrs.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | grep byval +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 %struct = type { } diff --git a/test/Assembler/2008-07-10-APInt.ll b/test/Assembler/2008-07-10-APInt.ll index 99347e92aba..3a54c8e00d4 100644 --- a/test/Assembler/2008-07-10-APInt.ll +++ b/test/Assembler/2008-07-10-APInt.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; PR2538 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" target triple = "i686-pc-linux-gnu" diff --git a/test/Assembler/2008-09-02-FunctionNotes.ll b/test/Assembler/2008-09-02-FunctionNotes.ll index 11a0411ef79..c3f077d79ed 100644 --- a/test/Assembler/2008-09-02-FunctionNotes.ll +++ b/test/Assembler/2008-09-02-FunctionNotes.ll @@ -1,5 +1,6 @@ ; Test function attributes ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; CHECK: define void @fn1() #0 define void @fn1() alwaysinline { diff --git a/test/Assembler/2008-09-29-RetAttr.ll b/test/Assembler/2008-09-29-RetAttr.ll index f7db96d2264..bb20c7fbfea 100644 --- a/test/Assembler/2008-09-29-RetAttr.ll +++ b/test/Assembler/2008-09-29-RetAttr.ll @@ -1,6 +1,7 @@ ; Test return attributes ; RUN: llvm-as < %s | llvm-dis | grep "define inreg i32" ; RUN: llvm-as < %s | llvm-dis | grep "call inreg i32" +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define inreg i32 @fn1() { ret i32 0 diff --git a/test/Assembler/2008-10-14-QuoteInName.ll b/test/Assembler/2008-10-14-QuoteInName.ll index ccd77791caa..f3dc23979d5 100644 --- a/test/Assembler/2008-10-14-QuoteInName.ll +++ b/test/Assembler/2008-10-14-QuoteInName.ll @@ -1,3 +1,4 @@ ; RUN: llvm-as < %s | llvm-dis | grep "quote" +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @"a\22quote" = global i32 0 diff --git a/test/Assembler/2009-02-01-UnnamedForwardRef.ll b/test/Assembler/2009-02-01-UnnamedForwardRef.ll index 9c6e20d7335..9d60e9d4268 100644 --- a/test/Assembler/2009-02-01-UnnamedForwardRef.ll +++ b/test/Assembler/2009-02-01-UnnamedForwardRef.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; PR3372 @X = global i32* @0 diff --git a/test/Assembler/2009-02-28-CastOpc.ll b/test/Assembler/2009-02-28-CastOpc.ll index 60356439d5f..9d557a0c843 100644 --- a/test/Assembler/2009-02-28-CastOpc.ll +++ b/test/Assembler/2009-02-28-CastOpc.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @foo() { diff --git a/test/Assembler/2009-02-28-StripOpaqueName.ll b/test/Assembler/2009-02-28-StripOpaqueName.ll index f61a44cbd15..cefd78cc1da 100644 --- a/test/Assembler/2009-02-28-StripOpaqueName.ll +++ b/test/Assembler/2009-02-28-StripOpaqueName.ll @@ -1,4 +1,5 @@ ; RUN: opt < %s -strip -S | llvm-as | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Stripping the name from A should not break references to it. %A = type opaque diff --git a/test/Assembler/2009-03-24-ZextConstantExpr.ll b/test/Assembler/2009-03-24-ZextConstantExpr.ll index daedb95da15..37bb2efe819 100644 --- a/test/Assembler/2009-03-24-ZextConstantExpr.ll +++ b/test/Assembler/2009-03-24-ZextConstantExpr.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; PR3876 @gdtr = external global [0 x i8] diff --git a/test/Assembler/2009-07-24-ZeroArgGEP.ll b/test/Assembler/2009-07-24-ZeroArgGEP.ll index 2a3d11477cb..d37601b6ce6 100644 --- a/test/Assembler/2009-07-24-ZeroArgGEP.ll +++ b/test/Assembler/2009-07-24-ZeroArgGEP.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @foo = global i32 0 @bar = constant i32* getelementptr(i32* @foo) diff --git a/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll b/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll index 17dd745682b..87470b6223e 100644 --- a/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll +++ b/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll @@ -1,4 +1,5 @@ ; RUN: opt -std-compile-opts < %s | llvm-dis | not grep badref +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-apple-darwin10.2" diff --git a/test/Assembler/ConstantExprFoldSelect.ll b/test/Assembler/ConstantExprFoldSelect.ll index b000e02653c..82c2b9cd9c1 100644 --- a/test/Assembler/ConstantExprFoldSelect.ll +++ b/test/Assembler/ConstantExprFoldSelect.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; PR18319 define void @function() { diff --git a/test/Assembler/ConstantExprNoFold.ll b/test/Assembler/ConstantExprNoFold.ll index b41959f494f..97a20d69e6c 100644 --- a/test/Assembler/ConstantExprNoFold.ll +++ b/test/Assembler/ConstantExprNoFold.ll @@ -2,6 +2,7 @@ ; situations ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Even give it a datalayout, to tempt folding as much as possible. target datalayout = "p:32:32" diff --git a/test/Assembler/MultipleReturnValueType.ll b/test/Assembler/MultipleReturnValueType.ll index 61771439454..eb605976f3b 100644 --- a/test/Assembler/MultipleReturnValueType.ll +++ b/test/Assembler/MultipleReturnValueType.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 %struct.S_102 = type { float, float } diff --git a/test/Assembler/addrspacecast-alias.ll b/test/Assembler/addrspacecast-alias.ll index 1d2c5799cf0..40ca1e3e566 100644 --- a/test/Assembler/addrspacecast-alias.ll +++ b/test/Assembler/addrspacecast-alias.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Test that global aliases are allowed to be constant addrspacecast diff --git a/test/Assembler/aggregate-constant-values.ll b/test/Assembler/aggregate-constant-values.ll index d0aab81a4d6..bb4c6b00e77 100644 --- a/test/Assembler/aggregate-constant-values.ll +++ b/test/Assembler/aggregate-constant-values.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; CHECK: @foo ; CHECK: store { i32, i32 } { i32 7, i32 9 }, { i32, i32 }* %x diff --git a/test/Assembler/aggregate-return-single-value.ll b/test/Assembler/aggregate-return-single-value.ll index 04540b54af1..49229933ec2 100644 --- a/test/Assembler/aggregate-return-single-value.ll +++ b/test/Assembler/aggregate-return-single-value.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define { i32 } @foob() nounwind { ret {i32}{ i32 0 } diff --git a/test/Assembler/align-inst.ll b/test/Assembler/align-inst.ll index 6f7100e065d..dc22a3df531 100644 --- a/test/Assembler/align-inst.ll +++ b/test/Assembler/align-inst.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @A = global i1 0, align 536870912 diff --git a/test/Assembler/alignstack.ll b/test/Assembler/alignstack.ll index 9f2059f722f..6efae91b4d8 100644 --- a/test/Assembler/alignstack.ll +++ b/test/Assembler/alignstack.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" target triple = "i386-apple-darwin10.0" diff --git a/test/Assembler/anon-functions.ll b/test/Assembler/anon-functions.ll index ac06e8ce305..5329cd6aa11 100644 --- a/test/Assembler/anon-functions.ll +++ b/test/Assembler/anon-functions.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; PR3611 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" diff --git a/test/Assembler/atomic.ll b/test/Assembler/atomic.ll index d7ccd9900bd..a953015fd69 100644 --- a/test/Assembler/atomic.ll +++ b/test/Assembler/atomic.ll @@ -1,4 +1,5 @@ ; RUN: opt < %s | opt -S | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Basic smoke test for atomic operations. define void @f(i32* %x) { diff --git a/test/Assembler/auto_upgrade_intrinsics.ll b/test/Assembler/auto_upgrade_intrinsics.ll index 8f655cec9eb..e207588216b 100644 --- a/test/Assembler/auto_upgrade_intrinsics.ll +++ b/test/Assembler/auto_upgrade_intrinsics.ll @@ -1,5 +1,6 @@ ; Test to make sure intrinsics are automatically upgraded. ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 declare i8 @llvm.ctlz.i8(i8) declare i16 @llvm.ctlz.i16(i16) diff --git a/test/Assembler/bcwrap.ll b/test/Assembler/bcwrap.ll index 4bec48cf63b..4805900c434 100644 --- a/test/Assembler/bcwrap.ll +++ b/test/Assembler/bcwrap.ll @@ -1,5 +1,6 @@ ; RUN: llvm-as < %s > %t ; RUN: llvm-nm %t | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Test for isBitcodeFile, llvm-nm must read from a file for this test. target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" target triple = "i686-apple-darwin9.2.2" diff --git a/test/Assembler/comment.ll b/test/Assembler/comment.ll index 16362abc716..265065b9ee0 100644 --- a/test/Assembler/comment.ll +++ b/test/Assembler/comment.ll @@ -1,5 +1,6 @@ ; RUN: llvm-as < %s | llvm-dis -show-annotations | FileCheck -check-prefix=ANNOT %s ; RUN: llvm-as < %s | llvm-dis | FileCheck -check-prefix=BARE %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; The bare version of this file should not have any #uses lines. ; BARE: @B = diff --git a/test/Assembler/externally-initialized.ll b/test/Assembler/externally-initialized.ll index 4be6e629a1d..7c30677d42f 100644 --- a/test/Assembler/externally-initialized.ll +++ b/test/Assembler/externally-initialized.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; CHECK: @G = externally_initialized global i32 0 diff --git a/test/Assembler/fast-math-flags.ll b/test/Assembler/fast-math-flags.ll index 3a116c507f4..3a334a24a1c 100644 --- a/test/Assembler/fast-math-flags.ll +++ b/test/Assembler/fast-math-flags.ll @@ -1,5 +1,6 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s ; RUN: opt -S < %s | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @addr = external global i64 @select = external global i1 diff --git a/test/Assembler/flags.ll b/test/Assembler/flags.ll index 310b807c5d5..24cd5dbdf83 100644 --- a/test/Assembler/flags.ll +++ b/test/Assembler/flags.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 @addr = external global i64 diff --git a/test/Assembler/functionlocal-metadata.ll b/test/Assembler/functionlocal-metadata.ll index f9b1d740379..7ab49901bd0 100644 --- a/test/Assembler/functionlocal-metadata.ll +++ b/test/Assembler/functionlocal-metadata.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @Foo(i32 %a, i32 %b) { entry: diff --git a/test/Assembler/getelementptr.ll b/test/Assembler/getelementptr.ll index af03fca6d2c..c531b4a0d4d 100644 --- a/test/Assembler/getelementptr.ll +++ b/test/Assembler/getelementptr.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Verify that over-indexed getelementptrs are folded. @A = external global [2 x [3 x [5 x [7 x i32]]]] diff --git a/test/Assembler/global-addrspace-forwardref.ll b/test/Assembler/global-addrspace-forwardref.ll index f0f094a2248..ca82dd7ca6e 100644 --- a/test/Assembler/global-addrspace-forwardref.ll +++ b/test/Assembler/global-addrspace-forwardref.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Make sure the address space of forward decls is preserved diff --git a/test/Assembler/half-constprop.ll b/test/Assembler/half-constprop.ll index 9e24f7242ba..c4429bcaddb 100644 --- a/test/Assembler/half-constprop.ll +++ b/test/Assembler/half-constprop.ll @@ -1,4 +1,5 @@ ; RUN: opt < %s -O3 -S | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Testing half constant propagation. define half @abc() nounwind { diff --git a/test/Assembler/half-conv.ll b/test/Assembler/half-conv.ll index 70a6b86c393..95c1365ffe7 100644 --- a/test/Assembler/half-conv.ll +++ b/test/Assembler/half-conv.ll @@ -1,4 +1,5 @@ ; RUN: opt < %s -O3 -S | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Testing half to float conversion. define float @abc() nounwind { diff --git a/test/Assembler/half.ll b/test/Assembler/half.ll index 63ad39235d1..515322ef6ec 100644 --- a/test/Assembler/half.ll +++ b/test/Assembler/half.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Basic smoke test for half type. ; CHECK: define half @halftest diff --git a/test/Assembler/huge-array.ll b/test/Assembler/huge-array.ll index a1abf879710..4d70c72bb4d 100644 --- a/test/Assembler/huge-array.ll +++ b/test/Assembler/huge-array.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; CHECK: define [18446744073709551615 x i8]* @foo() { ; CHECK: ret [18446744073709551615 x i8]* null diff --git a/test/Assembler/inalloca.ll b/test/Assembler/inalloca.ll index ff7a87e0a39..4a88020150b 100644 --- a/test/Assembler/inalloca.ll +++ b/test/Assembler/inalloca.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @a() { entry: diff --git a/test/Assembler/insertextractvalue.ll b/test/Assembler/insertextractvalue.ll index 6c00b138cee..9215e2839f3 100644 --- a/test/Assembler/insertextractvalue.ll +++ b/test/Assembler/insertextractvalue.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; CHECK: @foo ; CHECK-NEXT: load diff --git a/test/Assembler/metadata.ll b/test/Assembler/metadata.ll index 56888fd7034..de07ddd3853 100644 --- a/test/Assembler/metadata.ll +++ b/test/Assembler/metadata.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; CHECK: @test ; CHECK: ret void, !bar !1, !foo !0 diff --git a/test/Assembler/named-metadata.ll b/test/Assembler/named-metadata.ll index db728108ac9..a21e4649dda 100644 --- a/test/Assembler/named-metadata.ll +++ b/test/Assembler/named-metadata.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 !0 = metadata !{metadata !"zero"} !1 = metadata !{metadata !"one"} diff --git a/test/Assembler/numbered-values.ll b/test/Assembler/numbered-values.ll index 2439c831a70..affdd21fdf5 100644 --- a/test/Assembler/numbered-values.ll +++ b/test/Assembler/numbered-values.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; PR2480 define i32 @test(i32 %X) nounwind { diff --git a/test/Assembler/select.ll b/test/Assembler/select.ll index 2d3f412d256..026f17344fe 100644 --- a/test/Assembler/select.ll +++ b/test/Assembler/select.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as %s -o /dev/null +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define i32 @test(i1 %C, i32 %V1, i32 %V2) { diff --git a/test/Assembler/tls-models.ll b/test/Assembler/tls-models.ll index 42f24962aed..ec02eaf557f 100644 --- a/test/Assembler/tls-models.ll +++ b/test/Assembler/tls-models.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; CHECK: @a = thread_local global i32 0 ; CHECK: @b = thread_local(localdynamic) global i32 0 diff --git a/test/Assembler/unnamed-addr.ll b/test/Assembler/unnamed-addr.ll index 35b3b39ce48..64e59157483 100644 --- a/test/Assembler/unnamed-addr.ll +++ b/test/Assembler/unnamed-addr.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 %struct.foobar = type { i32 } diff --git a/test/Assembler/unnamed.ll b/test/Assembler/unnamed.ll index fb4fa6244e5..f77228cea1e 100644 --- a/test/Assembler/unnamed.ll +++ b/test/Assembler/unnamed.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" diff --git a/test/Assembler/upgrade-loop-metadata.ll b/test/Assembler/upgrade-loop-metadata.ll index 1c0311dd09e..05bd2adfc71 100644 --- a/test/Assembler/upgrade-loop-metadata.ll +++ b/test/Assembler/upgrade-loop-metadata.ll @@ -5,6 +5,7 @@ ; ; RUN: llvm-as < %s | llvm-dis | FileCheck %s ; RUN: opt -S < %s | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 define void @_Z28loop_with_vectorize_metadatav() { entry: diff --git a/test/Assembler/vbool-cmp.ll b/test/Assembler/vbool-cmp.ll index e652d2ff3b3..5ce7e56f455 100644 --- a/test/Assembler/vbool-cmp.ll +++ b/test/Assembler/vbool-cmp.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Rudimentary test of fcmp/icmp on vectors returning vector of bool ; CHECK: @ffoo diff --git a/test/Assembler/vector-cmp.ll b/test/Assembler/vector-cmp.ll index 6e3894ca100..e44443f87e8 100644 --- a/test/Assembler/vector-cmp.ll +++ b/test/Assembler/vector-cmp.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; PR2317 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" target triple = "i686-apple-darwin9.2.2" diff --git a/test/Assembler/vector-select.ll b/test/Assembler/vector-select.ll index ae8358abf9a..750b0acc664 100644 --- a/test/Assembler/vector-select.ll +++ b/test/Assembler/vector-select.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Rudimentary test of select on vectors returning vector of bool ; CHECK: @foo diff --git a/test/Assembler/vector-shift.ll b/test/Assembler/vector-shift.ll index 6a6531b4d2f..d2bca557a04 100644 --- a/test/Assembler/vector-shift.ll +++ b/test/Assembler/vector-shift.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; CHECK: @foo ; CHECK: shl diff --git a/test/Assembler/x86mmx.ll b/test/Assembler/x86mmx.ll index 732d3be8619..da93e9ac5a6 100644 --- a/test/Assembler/x86mmx.ll +++ b/test/Assembler/x86mmx.ll @@ -1,4 +1,5 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5 ; Basic smoke test for x86_mmx type. ; CHECK: define x86_mmx @sh16