Index: tests_lit/reader_tests/globalinit.pnacl.ll |
diff --git a/tests_lit/reader_tests/globalinit.pnacl.ll b/tests_lit/reader_tests/globalinit.pnacl.ll |
index cd4fda313ce03b97279459e6bb27179dcc49fed3..956e3998790b07c412700e1d8c1d09e9708612c4 100644 |
--- a/tests_lit/reader_tests/globalinit.pnacl.ll |
+++ b/tests_lit/reader_tests/globalinit.pnacl.ll |
@@ -1,82 +1,47 @@ |
; Test of global initializers. |
; Check that we generate proper global initializers. |
-; RUN: %p2i -i %s --args -verbose inst | FileCheck %s |
- |
-; Check that what we generate is valid assembly |
-; RUN: %p2i -i %s --args -verbose none \ |
-; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
- |
-; Check that we don't generate errors |
-; RUN: %p2i -i %s --args -verbose none | FileCheck --check-prefix=ERRORS %s |
+; RUN: %l2i -i %s --insts | FileCheck %s |
+; RUN: %p2i -i %s --insts | FileCheck %s |
@PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 |
-; CHECK: .type PrimitiveInit,@object |
-; CHECK-NEXT: .section .data,"aw",@progbits |
-; CHECK-NEXT: .align 4 |
-; CHECK-NEXT: PrimitiveInit: |
-; CHECK-NEXT: .byte |
-; CHECK: .size PrimitiveInit, 4 |
+; CHECK: @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 |
@PrimitiveInitConst = internal constant [4 x i8] c"\0D\00\00\00", align 4 |
-; CHECK: .type PrimitiveInitConst,@object |
-; CHECK-NEXT: .section .rodata,"a",@progbits |
-; CHECK-NEXT: .align 4 |
-; CHECK-NEXT: PrimitiveInitConst: |
-; CHECK-NEXT: .byte |
-; CHECK: .size PrimitiveInitConst, 4 |
+; CHECK-NEXT: @PrimitiveInitConst = internal constant [4 x i8] c"\0D\00\00\00", align 4 |
@ArrayInit = internal global [20 x i8] c"\0A\00\00\00\14\00\00\00\1E\00\00\00(\00\00\002\00\00\00", align 4 |
-; CHECK: .type ArrayInit,@object |
-; CHECK-NEXT: .section .data,"aw",@progbits |
-; CHECK-NEXT: .align 4 |
-; CHECK-NEXT: ArrayInit: |
-; CHECK-NEXT: .byte |
-; CHECK: .size ArrayInit, 20 |
+; CHECK-NEXT: @ArrayInit = internal global [20 x i8] c"\0A\00\00\00\14\00\00\00\1E\00\00\00(\00\00\002\00\00\00", align 4 |
@ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\00\00\00Z\00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 4 |
-; CHECK: .type ArrayInitPartial,@object |
-; CHECK-NEXT: .section .data,"aw",@progbits |
-; CHECK-NEXT: .align 4 |
-; CHECK-NEXT: ArrayInitPartial: |
-; CHECK-NEXT: .byte |
-; CHECK: .size ArrayInitPartial, 40 |
+; CHECK-NEXT: @ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\00\00\00Z\00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 4 |
@PrimitiveInitStatic = internal global [4 x i8] zeroinitializer, align 4 |
-; CHECK: .type PrimitiveInitStatic,@object |
-; CHECK-NEXT: .local PrimitiveInitStatic |
-; CHECK-NEXT: .comm PrimitiveInitStatic,4,4 |
+; CHECK-NEXT: @PrimitiveInitStatic = internal global [4 x i8] zeroinitializer, align 4 |
@PrimitiveUninit = internal global [4 x i8] zeroinitializer, align 4 |
-; CHECK: .type PrimitiveUninit,@object |
-; CHECK-NEXT: .local PrimitiveUninit |
-; CHECK-NEXT: .comm PrimitiveUninit,4,4 |
+; CHECK-NEXT: @PrimitiveUninit = internal global [4 x i8] zeroinitializer, align 4 |
@ArrayUninit = internal global [20 x i8] zeroinitializer, align 4 |
-; CHECK: .type ArrayUninit,@object |
-; CHECK-NEXT: .local ArrayUninit |
-; CHECK-NEXT: .comm ArrayUninit,20,4 |
+; CHECK-NEXT: @ArrayUninit = internal global [20 x i8] zeroinitializer, align 4 |
@ArrayUninitConstDouble = internal constant [200 x i8] zeroinitializer, align 8 |
-; CHECK: .type ArrayUninitConstDouble,@object |
-; CHECK-NEXT: .section .rodata,"a",@progbits |
-; CHECK-NEXT: .align 8 |
-; CHECK-NEXT: ArrayUninitConstDouble: |
-; CHECK-NEXT: .zero 200 |
-; CHECK-NEXT: .size ArrayUninitConstDouble, 200 |
+; CHECK-NEXT: @ArrayUninitConstDouble = internal constant [200 x i8] zeroinitializer, align 8 |
@ArrayUninitConstInt = internal constant [20 x i8] zeroinitializer, align 4 |
-; CHECK: .type ArrayUninitConstInt,@object |
-; CHECK: .section .rodata,"a",@progbits |
-; CHECK-NEXT: .align 4 |
-; CHECK-NEXT: ArrayUninitConstInt: |
-; CHECK-NEXT: .zero 20 |
-; CHECK-NEXT: .size ArrayUninitConstInt, 20 |
+; CHECK-NEXT: @ArrayUninitConstInt = internal constant [20 x i8] zeroinitializer, align 4 |
@__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
+; CHECK-NEXT: @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
+ |
@__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
+; CHECK: @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
+ |
@__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 |
+; CHECK: @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 |
+ |
@__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 |
+; CHECK: @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 |
define internal i32 @main(i32 %argc, i32 %argv) { |
entry: |
@@ -96,28 +61,6 @@ entry: |
call void @use(i32 %expanded13) |
ret i32 0 |
} |
-; CHECK-LABEL: main |
-; CHECK: .att_syntax |
-; CHECK: leal PrimitiveInit, |
-; CHECK: .intel_syntax |
-; CHECK: .att_syntax |
-; CHECK: leal PrimitiveInitConst, |
-; CHECK: .intel_syntax |
-; CHECK: .att_syntax |
-; CHECK: leal PrimitiveInitStatic, |
-; CHECK: .intel_syntax |
-; CHECK: .att_syntax |
-; CHECK: leal PrimitiveUninit, |
-; CHECK: .intel_syntax |
-; CHECK: .att_syntax |
-; CHECK: leal ArrayInit, |
-; CHECK: .intel_syntax |
-; CHECK: .att_syntax |
-; CHECK: leal ArrayInitPartial, |
-; CHECK: .intel_syntax |
-; CHECK: .att_syntax |
-; CHECK: leal ArrayUninit, |
-; CHECK: .intel_syntax |
declare void @use(i32) |