Index: test/NaCl/Bitcode/pnacl-bcdis/no-abbreviations.ll |
diff --git a/test/NaCl/Bitcode/pnacl-bcdis/no-abbreviations.ll b/test/NaCl/Bitcode/pnacl-bcdis/no-abbreviations.ll |
index 73a1f3fd16f1d364fbd85cefcafadd438ae6ca05..593e969925906ed94567c84400e83ce55cf3b72c 100644 |
--- a/test/NaCl/Bitcode/pnacl-bcdis/no-abbreviations.ll |
+++ b/test/NaCl/Bitcode/pnacl-bcdis/no-abbreviations.ll |
@@ -7,6 +7,11 @@ |
; RUN: | FileCheck %s --check-prefix ABV |
; RUN: llvm-as < %s | pnacl-freeze --allow-local-symbol-tables \ |
+; RUN: --align-bitcode-records \ |
+; RUN: | pnacl-bcdis --allow-local-symbol-tables \ |
+; RUN: | FileCheck %s --check-prefix ALN |
+ |
+; RUN: llvm-as < %s | pnacl-freeze --allow-local-symbol-tables \ |
; RUN: | pnacl-bccompress --remove-abbreviations \ |
; RUN: | pnacl-bcdis --allow-local-symbol-tables \ |
; RUN: | FileCheck %s --check-prefix NOABV |
@@ -126,6 +131,110 @@ false: |
; ABV-NEXT: 276:0| 0: <65534> | } |
; ABV-NEXT: 280:0|0: <65534> |} |
+; ALN: 0:0|<65532, 80, 69, 88, 69, 2, 0,|Magic Number: 'PEXE' (80, 69, 88, 69) |
+; ALN-NEXT: | 12, 0, 17, 0, 4, 0, 2, 0, 0,|PNaCl Version: 2 |
+; ALN-NEXT: | 0, 34, 0, 0, 0> |Align bitcode records: true |
+; ALN-NEXT:Warning(0:0): Unsupported: Align bitcode records: true |
+; ALN-NEXT: 20:0|1: <65535, 8, 2> |module { // BlockID = 8 |
+; ALN-NEXT: 28:0| 3: <1, 1> | version 1; |
+; ALN-NEXT: 31:0| 1: <65535, 0, 2> | abbreviations { // BlockID = 0 |
+; ALN-NEXT: 40:0| 3: <1, 14> | valuesymtab: |
+; ALN-NEXT: 43:0| 2: <65533, 4, 0, 1, 3, 0,| @a0 = abbrev <fixed(3), vbr(8), |
+; ALN-NEXT: | 2, 8, 0, 3, 0, 1, 8> | array(fixed(8))>; |
+; ALN-NEXT: 48:0| 2: <65533, 4, 1, 1, 0, 2,| @a1 = abbrev <1, vbr(8), |
+; ALN-NEXT: | 8, 0, 3, 0, 1, 7> | array(fixed(7))>; |
+; ALN-NEXT: 53:0| 2: <65533, 4, 1, 1, 0, 2,| @a2 = abbrev <1, vbr(8), |
+; ALN-NEXT: | 8, 0, 3, 0, 4> | array(char6)>; |
+; ALN-NEXT: 58:0| 2: <65533, 4, 1, 2, 0, 2,| @a3 = abbrev <2, vbr(8), |
+; ALN-NEXT: | 8, 0, 3, 0, 4> | array(char6)>; |
+; ALN-NEXT: 63:0| 3: <1, 11> | constants: |
+; ALN-NEXT: 66:0| 2: <65533, 2, 1, 1, 0, 1,| @a0 = abbrev <1, fixed(3)>; |
+; ALN-NEXT: | 3> | |
+; ALN-NEXT: 70:0| 2: <65533, 2, 1, 4, 0, 2,| @a1 = abbrev <4, vbr(8)>; |
+; ALN-NEXT: | 8> | |
+; ALN-NEXT: 74:0| 2: <65533, 2, 1, 4, 1, 0>| @a2 = abbrev <4, 0>; |
+; ALN-NEXT: 78:0| 2: <65533, 2, 1, 6, 0, 2,| @a3 = abbrev <6, vbr(8)>; |
+; ALN-NEXT: | 8> | |
+; ALN-NEXT: 82:0| 3: <1, 12> | function: |
+; ALN-NEXT: 85:0| 2: <65533, 4, 1, 20, 0, | @a0 = abbrev <20, vbr(6), vbr(4), |
+; ALN-NEXT: | 2, 6, 0, 2, 4, 0, 2, | vbr(4)>; |
+; ALN-NEXT: | 4> | |
+; ALN-NEXT: 91:0| 2: <65533, 4, 1, 2, 0, 2,| @a1 = abbrev <2, vbr(6), vbr(6), |
+; ALN-NEXT: | 6, 0, 2, 6, 0, 1, 4> | fixed(4)>; |
+; ALN-NEXT: 97:0| 2: <65533, 4, 1, 3, 0, 2,| @a2 = abbrev <3, vbr(6), |
+; ALN-NEXT: | 6, 0, 1, 3, 0, 1, 4> | fixed(3), fixed(4)>; |
+; ALN-NEXT: 103:0| 2: <65533, 1, 1, 10> | @a3 = abbrev <10>; |
+; ALN-NEXT: 105:0| 2: <65533, 2, 1, 10, 0, | @a4 = abbrev <10, vbr(6)>; |
+; ALN-NEXT: | 2, 6> | |
+; ALN-NEXT: 109:0| 2: <65533, 1, 1, 15> | @a5 = abbrev <15>; |
+; ALN-NEXT: 111:0| 2: <65533, 3, 1, 43, 0, | @a6 = abbrev <43, vbr(6), |
+; ALN-NEXT: | 2, 6, 0, 1, 3> | fixed(3)>; |
+; ALN-NEXT: 116:0| 2: <65533, 4, 1, 24, 0, | @a7 = abbrev <24, vbr(6), vbr(6), |
+; ALN-NEXT: | 2, 6, 0, 2, 6, 0, 2, | vbr(4)>; |
+; ALN-NEXT: | 4> | |
+; ALN-NEXT: 122:0| 3: <1, 19> | globals: |
+; ALN-NEXT: 125:0| 2: <65533, 3, 1, 0, 0, 2,| @a0 = abbrev <0, vbr(6), |
+; ALN-NEXT: | 6, 0, 1, 1> | fixed(1)>; |
+; ALN-NEXT: 130:0| 2: <65533, 2, 1, 1, 0, 2,| @a1 = abbrev <1, vbr(8)>; |
+; ALN-NEXT: | 8> | |
+; ALN-NEXT: 134:0| 2: <65533, 2, 1, 2, 0, 2,| @a2 = abbrev <2, vbr(8)>; |
+; ALN-NEXT: | 8> | |
+; ALN-NEXT: 138:0| 2: <65533, 3, 1, 3, 0, 3,| @a3 = abbrev <3, array(fixed(8))> |
+; ALN-NEXT: | 0, 1, 8> | ; |
+; ALN-NEXT: 142:0| 2: <65533, 2, 1, 4, 0, 2,| @a4 = abbrev <4, vbr(6)>; |
+; ALN-NEXT: | 6> | |
+; ALN-NEXT: 146:0| 2: <65533, 3, 1, 4, 0, 2,| @a5 = abbrev <4, vbr(6), vbr(6)>; |
+; ALN-NEXT: | 6, 0, 2, 6> | |
+; ALN-NEXT: 151:0| 0: <65534> | } |
+; ALN-NEXT: 152:0| 1: <65535, 17, 3> | types { // BlockID = 17 |
+; ALN-NEXT: 160:0| 2: <65533, 4, 1, 21, 0, | %a0 = abbrev <21, fixed(1), |
+; ALN-NEXT: | 1, 1, 0, 3, 0, 1, 3> | array(fixed(3))>; |
+; ALN-NEXT: 165:0| 3: <1, 4> | count 4; |
+; ALN-NEXT: 168:0| 3: <7, 32> | @t0 = i32; |
+; ALN-NEXT: 172:0| 3: <2> | @t1 = void; |
+; ALN-NEXT: 174:0| 4: <21, 0, 0, 0> | @t2 = i32 (i32); <%a0> |
+; ALN-NEXT: 176:0| 3: <7, 1> | @t3 = i1; |
+; ALN-NEXT: 179:0| 0: <65534> | } |
+; ALN-NEXT: 180:0| 3: <8, 2, 0, 0, 0> | define external i32 @f0(i32); |
+; ALN-NEXT: 185:0| 1: <65535, 19, 4> | globals { // BlockID = 19 |
+; ALN-NEXT: 192:0| 3: <5, 0> | count 0; |
+; ALN-NEXT: 195:0| 0: <65534> | } |
+; ALN-NEXT: 196:0| 1: <65535, 14, 3> | valuesymtab { // BlockID = 14 |
+; ALN-NEXT: 204:0| 6: <1, 0, 102, 97, 99, | @f0 : "fact"; <@a2> |
+; ALN-NEXT: | 116> | |
+; ALN-NEXT: 210:0| 0: <65534> | } |
+; ALN-NEXT: 212:0| 1: <65535, 12, 4> | function i32 @f0(i32 %p0) { |
+; ALN-NEXT: | | // BlockID = 12 |
+; ALN-NEXT: 220:0| 3: <1, 3> | blocks 3; |
+; ALN-NEXT: 223:0| 1: <65535, 11, 3> | constants { // BlockID = 11 |
+; ALN-NEXT: 232:0| 4: <1, 0> | i32: <@a0> |
+; ALN-NEXT: 233:0| 5: <4, 2> | %c0 = i32 1; <@a1> |
+; ALN-NEXT: 235:0| 6: <4, 0> | %c1 = i32 0; <@a2> |
+; ALN-NEXT: 236:0| 0: <65534> | } |
+; ALN-NEXT: | | %b0: |
+; ALN-NEXT: 240:0| 3: <28, 1, 2, 32> | %v0 = icmp eq i32 %c1, %c0; |
+; ALN-NEXT: 245:0| 3: <11, 1, 2, 1> | br i1 %v0, label %b1, label %b2; |
+; ALN-NEXT: | | %b1: |
+; ALN-NEXT: 250:0| 8: <10, 3> | ret i32 %c0; <@a4> |
+; ALN-NEXT: | | %b2: |
+; ALN-NEXT: 252:0| 5: <2, 4, 3, 1> | %v1 = sub i32 %p0, %c0; <@a1> |
+; ALN-NEXT: 255:0| 3: <34, 0, 6, 1> | %v2 = call i32 @f0(i32 %v1); |
+; ALN-NEXT: 260:0| 5: <2, 6, 1, 2> | %v3 = mul i32 %p0, %v2; <@a1> |
+; ALN-NEXT: 263:0| 8: <10, 1> | ret i32 %v3; <@a4> |
+; ALN-NEXT: 265:0| 1: <65535, 14, 3> | valuesymtab { // BlockID = 14 |
+; ALN-NEXT: 272:0| 7: <2, 1, 116, 114, | %b1 : "true"; <@a3> |
+; ALN-NEXT: | 117, 101> | |
+; ALN-NEXT: 278:0| 6: <1, 4, 118, 49> | %v0 : "v1"; <@a2> |
+; ALN-NEXT: 282:0| 6: <1, 5, 118, 50> | %v1 : "v2"; <@a2> |
+; ALN-NEXT: 286:0| 6: <1, 6, 118, 51> | %v2 : "v3"; <@a2> |
+; ALN-NEXT: 290:0| 6: <1, 7, 118, 52> | %v3 : "v4"; <@a2> |
+; ALN-NEXT: 294:0| 7: <2, 2, 102, 97, 108,| %b2 : "false"; <@a3> |
+; ALN-NEXT: | 115, 101> | |
+; ALN-NEXT: 300:0| 6: <1, 1, 110> | %p0 : "n"; <@a2> |
+; ALN-NEXT: 303:0| 0: <65534> | } |
+; ALN-NEXT: 304:0| 0: <65534> | } |
+; ALN-NEXT: 308:0|0: <65534> |} |
+ |
; NOABV: 0:0|<65532, 80, 69, 88, 69, 1, 0,|Magic Number: 'PEXE' (80, 69, 88, 69) |
; NOABV-NEXT: | 8, 0, 17, 0, 4, 0, 2, 0, 0, |PNaCl Version: 2 |
; NOABV-NEXT: | 0> | |