; 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
; 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
; 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 ; <double> [#uses=1]
; 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 ; <float> [#uses=1]
; 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
; 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.
; 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
; 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]
; 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()
; 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"
; 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 )
; 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]
; 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]
; 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 ; <i8**> [#uses=0]
; "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 ; <i32*> [#uses=0]
; 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!
; 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]
; 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*
; 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"
; 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) {
; 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 ; <i32> [#uses=0]
; 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
; 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 )
; RUN: llvm-as %s -o /dev/null
+; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5
; Check minimal switch statement
; 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
; 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.
; 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]
; 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*) ; <i32**>:0 [#uses=0]
; 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)
; 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]
; 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 }
; RUN: llvm-as < %s | llvm-dis | grep 9223372036854775808
+; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5
global i64 -9223372036854775808
; 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
; 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!
; 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
; 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 ; <i32*> [#uses=0]
; RUN: llvm-as < %s > /dev/null
+; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5
define void @t() {
entry:
;; 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
; 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
; 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()
; 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
; 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
; 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
; 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]
; 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
; 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:
; 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:
; 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)
; 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 }
; 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
; 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*)
; 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:
; 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]
; RUN: llvm-as < %s | llvm-dis | grep byval
+; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5
%struct = type { }
; 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"
; 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 {
; 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
; 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
; RUN: llvm-as < %s | llvm-dis
+; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5
; PR3372
@X = global i32* @0
; RUN: llvm-as < %s | llvm-dis
+; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5
define void @foo() {
; 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
; 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]
; 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)
; 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"
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5
; PR18319
define void @function() {
; 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"
; RUN: llvm-as < %s
+; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5
%struct.S_102 = type { float, float }
; 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
; 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
; 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 }
; 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
; 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"
; 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"
; 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) {
; 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)
; 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"
; 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 =
; 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
; 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
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5
@addr = external global i64
; 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:
; 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]]]]
; 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
; 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 {
; 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 {
; 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
; 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
; RUN: llvm-as %s -o /dev/null
+; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5
define void @a() {
entry:
; 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
; 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
; 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"}
; 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 {
; 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) {
; 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
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; RUN: verify-uselistorder %s -preserve-bc-use-list-order -num-shuffles=5
%struct.foobar = type { i32 }
; 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"
;
; 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:
; 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
; 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"
; 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
; 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
; 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