Mercurial > hg > CbC > CbC_llvm
comparison test/Assembler/uselistorder.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 (2015-10-13) |
parents | 54457678186b |
children |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
2 ; CHECK-NOT: error | 2 ; CHECK-NOT: error |
3 ; CHECK-NOT: warning | 3 ; CHECK-NOT: warning |
4 ; RUN: verify-uselistorder < %s | 4 ; RUN: verify-uselistorder < %s |
5 | 5 |
6 @a = global [4 x i1] [i1 0, i1 1, i1 0, i1 1] | 6 @a = global [4 x i1] [i1 0, i1 1, i1 0, i1 1] |
7 @b = alias i1* getelementptr ([4 x i1]* @a, i64 0, i64 2) | 7 @b = alias i1, getelementptr ([4 x i1], [4 x i1]* @a, i64 0, i64 2) |
8 | 8 |
9 ; Check use-list order of constants used by globals. | 9 ; Check use-list order of constants used by globals. |
10 @glob1 = global i5 7 | 10 @glob1 = global i5 7 |
11 @glob2 = global i5 7 | 11 @glob2 = global i5 7 |
12 @glob3 = global i5 7 | 12 @glob3 = global i5 7 |
46 uselistorder label %preexit, { 1, 0 } | 46 uselistorder label %preexit, { 1, 0 } |
47 } | 47 } |
48 | 48 |
49 define i1 @loada() { | 49 define i1 @loada() { |
50 entry: | 50 entry: |
51 %a = load i1* getelementptr ([4 x i1]* @a, i64 0, i64 2) | 51 %a = load i1, i1* getelementptr ([4 x i1], [4 x i1]* @a, i64 0, i64 2) |
52 ret i1 %a | 52 ret i1 %a |
53 } | 53 } |
54 | 54 |
55 uselistorder i5 7, { 1, 0, 2 } | 55 uselistorder i5 7, { 1, 0, 2 } |
56 uselistorder i1* getelementptr ([4 x i1]* @a, i64 0, i64 2), { 1, 0 } | 56 uselistorder i1* getelementptr ([4 x i1], [4 x i1]* @a, i64 0, i64 2), { 1, 0 } |