| Index: tests_lit/reader_tests/globalinit.pnacl.ll
|
| diff --git a/tests_lit/llvm2ice_tests/globalinit.pnacl.ll b/tests_lit/reader_tests/globalinit.pnacl.ll
|
| similarity index 83%
|
| copy from tests_lit/llvm2ice_tests/globalinit.pnacl.ll
|
| copy to tests_lit/reader_tests/globalinit.pnacl.ll
|
| index a0772ee0f490dfdaaa3642f15fb598eaa17b0cde..2620d907e0708024923c7a04d0b5990481868468 100644
|
| --- a/tests_lit/llvm2ice_tests/globalinit.pnacl.ll
|
| +++ b/tests_lit/reader_tests/globalinit.pnacl.ll
|
| @@ -1,10 +1,22 @@
|
| ; Test of global initializers.
|
|
|
| -; RUN: %llvm2ice --verbose inst %s | FileCheck %s
|
| -; RUN: %llvm2ice --verbose none %s \
|
| +; Check that we generate proper global initializers.
|
| +; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \
|
| +; RUN: | %llvm2ice -verbose inst -build-on-read \
|
| +; RUN: -allow-local-symbol-tables \
|
| +; RUN: | FileCheck %s
|
| +
|
| +; Check that what we generate is valid assembly
|
| +; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \
|
| +; RUN: | %llvm2ice -verbose none -build-on-read \
|
| +; RUN: -allow-local-symbol-tables \
|
| ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj
|
| -; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
|
| -; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
|
| +
|
| +; Check that we don't generate errors
|
| +; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \
|
| +; RUN: | %llvm2ice -verbose none -build-on-read \
|
| +; RUN: -allow-local-symbol-tables \
|
| +; RUN: | FileCheck --check-prefix=ERRORS %s
|
|
|
| @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4
|
| ; CHECK: .data
|
| @@ -129,4 +141,3 @@ entry:
|
| }
|
|
|
| ; ERRORS-NOT: ICE translation error
|
| -; DUMP-NOT: SZ
|
|
|