1 ; RUN: llvm-as < %s -disable-output 2>&1 | FileCheck %s -allow-empty
4 ; RUN: verify-uselistorder < %s
6 @a = global [4 x i1] [i1 0, i1 1, i1 0, i1 1]
7 @b = alias i1, getelementptr ([4 x i1], [4 x i1]* @a, i64 0, i64 2)
9 ; Check use-list order of constants used by globals.
14 define i32 @f32(i32 %a, i32 %b, i32 %c, i32 %d) {
20 %sum = add i32 %eh, %ef
24 %product = phi i32 [%ef, %first], [%sum, %0]
25 %backto0 = icmp slt i32 %product, -9
26 br i1 %backto0, label %0, label %exit
38 %goto0 = icmp slt i32 %g1, -9
39 br i1 %goto0, label %0, label %preexit
41 ; uselistorder directives
42 uselistorder i32 7, { 1, 0 }
43 uselistorder i32 %1, { 1, 0 }
44 uselistorder i32 %e, { 1, 0 }
45 uselistorder label %0, { 1, 0 }
46 uselistorder label %preexit, { 1, 0 }
51 %a = load i1, i1* getelementptr ([4 x i1], [4 x i1]* @a, i64 0, i64 2)
55 uselistorder i5 7, { 1, 0, 2 }
56 uselistorder i1* getelementptr ([4 x i1], [4 x i1]* @a, i64 0, i64 2), { 1, 0 }