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

Unified Diff: tests_lit/parse_errs/call-indirect-i8.ll

Issue 1354673002: Fix call instructions to check parameter types for consistency. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix minimal build to work. 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
Index: tests_lit/parse_errs/call-indirect-i8.ll
diff --git a/tests_lit/parse_errs/call-indirect-i8.ll b/tests_lit/parse_errs/call-indirect-i8.ll
new file mode 100644
index 0000000000000000000000000000000000000000..25b0d048d15d246f6d94a0d7efe9c779364ea9ee
--- /dev/null
+++ b/tests_lit/parse_errs/call-indirect-i8.ll
@@ -0,0 +1,11 @@
+; Tests that we don't allow illegal sized parameters on indirect calls.
+
+; RUN: %p2i --expect-fail -i %s --insts | FileCheck %s
+
+define void @CallIndirectI32(i32 %f_addr) {
+entry:
+ %f = inttoptr i32 %f_addr to i32(i8)*
+ %r = call i32 %f(i8 1)
+; CHECK: Call argument 1 has invalid type: i8
+ ret void
+}

Powered by Google App Engine
This is Rietveld 408576698