Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Unified Diff: tests_lit/reader_tests/globalinit.pnacl.ll

Issue 587893003: Test generation of global initializers in Subzero bitcode reader. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698