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

Unified Diff: tests_lit/parse_errs/indirect-call-on-float.test

Issue 1363983002: Check that address is i32 for indirect calls. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. 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/parse_errs/call-indirect-i8.ll ('k') | tests_lit/parse_errs/symtab-after-fcn.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/parse_errs/indirect-call-on-float.test
diff --git a/tests_lit/parse_errs/indirect-call-on-float.test b/tests_lit/parse_errs/indirect-call-on-float.test
new file mode 100644
index 0000000000000000000000000000000000000000..ef30de6a71b4f92729cec62854ebfac9ba029450
--- /dev/null
+++ b/tests_lit/parse_errs/indirect-call-on-float.test
@@ -0,0 +1,21 @@
+; Tests that we check the call address is a pointer on an indirect call.
+
+; REQUIRES: no_minimal_build
+
+; RUN: not %pnacl_sz -bitcode-as-text \
+; RUN: %p/Inputs/indirect-call-on-float.tbc \
+; RUN: -bitcode-format=pnacl -notranslate -build-on-read 2>&1 \
+; RUN: | FileCheck %s
+
+; CHECK: Call indirect address not i32. Found: float
+
+; RUN: pnacl-bcfuzz -bitcode-as-text \
+; RUN: %p/Inputs/indirect-call-on-float.tbc -output - \
+; RUN: | not pnacl-bcdis -no-records | FileCheck -check-prefix=ASM %s
+
+; ASM: function void @f1(i32 %p0, float %p1) { // BlockID = 12
+; ASM: blocks 1;
+; ASM: %b0:
+; ASM: call void %p1();
+; ASM: ret void;
+; ASM: }
« no previous file with comments | « tests_lit/parse_errs/call-indirect-i8.ll ('k') | tests_lit/parse_errs/symtab-after-fcn.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698