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

Unified Diff: tests_lit/reader_tests/nacl-fake-intrinsic.ll

Issue 686913005: Turn off dump/emit routines when building minimal subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 1 month 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
Index: tests_lit/reader_tests/nacl-fake-intrinsic.ll
diff --git a/tests_lit/reader_tests/nacl-fake-intrinsic.ll b/tests_lit/reader_tests/nacl-fake-intrinsic.ll
index d325383c050a62900201fb4499d46b96e4a82999..c827fe87649a4ddfbb000cdcd3a7f68b2ab3b2ad 100644
--- a/tests_lit/reader_tests/nacl-fake-intrinsic.ll
+++ b/tests_lit/reader_tests/nacl-fake-intrinsic.ll
@@ -3,11 +3,26 @@
; TODO(kschimpf) Find way to run this through p2i. Note: Can't do this
; currently because run-llvm2ice.py raises exception on error,
; and output is lost.
-; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \
-; RUN: | not %llvm2ice -notranslate -verbose=inst \
-; RUN: -allow-pnacl-reader-error-recovery \
-; RUN: -allow-local-symbol-tables \
-; RUN: | FileCheck %s
+; RUN: %if --need=allow_dump --command \
+; RUN: llvm-as < %s \
+; RUN: | %if --need=allow_dump --command \
+; RUN: pnacl-freeze -allow-local-symbol-tables \
+; RUN: | %if --need=allow_dump --command \
+; RUN: not %llvm2ice -notranslate -verbose=inst -build-on-read \
+; RUN: -allow-pnacl-reader-error-recovery \
+; RUN: -allow-local-symbol-tables \
+; RUN: | %if --need=allow_dump --command \
+; RUN: FileCheck %s
+
+; RUN: %if --need=no_dump --command \
+; RUN: llvm-as < %s \
+; RUN: | %if --need=no_dump --command \
+; RUN: pnacl-freeze -allow-local-symbol-tables \
+; RUN: | %if --need=no_dump --command \
+; RUN: not %llvm2ice -notranslate -verbose=inst -build-on-read \
+; RUN: -allow-pnacl-reader-error-recovery -allow-local-symbol-tables \
+; RUN: | %if --need=no_dump --command \
+; RUN: FileCheck --check-prefix=MIN %s
declare i32 @llvm.fake.i32(i32)
@@ -16,5 +31,6 @@ define i32 @testFake(i32 %v) {
ret i32 %r
}
-; CHECK: Error: (218:6) Invalid PNaCl intrinsic call to llvm.fake.i32
+; CHECK: Error: ({{.*}}) Invalid PNaCl intrinsic call to llvm.fake.i32
+; MIN: Error: ({{.*}}) Invalid input record

Powered by Google App Engine
This is Rietveld 408576698