Now diagnosing missing vmctx arguments (fixes #376) (#384)

* Now diagnosing missing vmctx arguments (fixes #376).

* Added filetest for fix of #376.

* Respect formatting rules in verifier/mod.rs.

* Added parameters for each use of vmctx in test files.

* Added comments on additions on vmctx verifications.
This commit is contained in:
Grégoire Geis
2018-07-04 05:59:32 +02:00
committed by Dan Gohman
parent e5014e0fff
commit dd72b54eef
6 changed files with 52 additions and 23 deletions

View File

@@ -1,11 +1,11 @@
test verifier
function %add_members(i32) -> f32 baldrdash {
function %add_members(i32, i64 vmctx) -> f32 baldrdash {
gv0 = vmctx+64
gv1 = vmctx+72
heap0 = dynamic gv0, min 0x1000, bound gv1, guard 0
ebb0(v0: i32):
ebb0(v0: i32, v6: i64):
v1 = heap_addr.i64 heap0, v0, 20
v2 = load.f32 v1+16
v3 = heap_addr.i64 heap0, v0, 24

View File

@@ -1,10 +1,10 @@
test verifier
function %add_members(i32) -> f32 baldrdash {
function %add_members(i32, i32 vmctx) -> f32 baldrdash {
gv0 = vmctx+64
heap0 = static gv0, min 0x1000, bound 0x10_0000, guard 0x1000
ebb0(v0: i32):
ebb0(v0: i32, v5: i32):
v1 = heap_addr.i32 heap0, v0, 1
v2 = load.f32 v1+16
v3 = load.f32 v1+20

View File

@@ -1,10 +1,10 @@
test verifier
function %add_members(i32) -> f32 baldrdash {
function %add_members(i32, i64 vmctx) -> f32 baldrdash {
gv0 = vmctx+64
heap0 = static gv0, min 0x1000, bound 0x1_0000_0000, guard 0x8000_0000
ebb0(v0: i32):
ebb0(v0: i32, v5: i64):
v1 = heap_addr.i64 heap0, v0, 1
v2 = load.f32 v1+16
v3 = load.f32 v1+20