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

Unified Diff: tests_lit/llvm2ice_tests/phi_invalid.test

Issue 1351433002: Subzero: Validate phi instructions after CFG construction. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add the test provenance Created 5 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 | « tests_lit/llvm2ice_tests/Input/phi-invalid.tbc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/phi_invalid.test
diff --git a/tests_lit/llvm2ice_tests/phi_invalid.test b/tests_lit/llvm2ice_tests/phi_invalid.test
new file mode 100644
index 0000000000000000000000000000000000000000..198de4cc6749dfa8b7a3a8b44aea020e3eaac1c4
--- /dev/null
+++ b/tests_lit/llvm2ice_tests/phi_invalid.test
@@ -0,0 +1,7 @@
+; Test that a bad phi instruction is caught.
+; https://code.google.com/p/nativeclient/issues/detail?id=4304
+
+RUN: %p2i --expect-fail --tbc -i %p/Input/phi-invalid.tbc --insts 2>&1 \
+RUN: | FileCheck --check-prefix=BADPHI %s
+
+; BADPHI: Phi error:
« no previous file with comments | « tests_lit/llvm2ice_tests/Input/phi-invalid.tbc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698