Browse Source

Expect tests: tlb offset is not stable

Fabian 2 years ago
parent
commit
85df1ec798

+ 1 - 1
tests/expect/run.js

@@ -23,7 +23,7 @@ catch(e) {
 const TEST_NAME = process.env.TEST_NAME;
 
 const LOG_LEVEL = 0;
-const MIN_MEMORY_OFFSET = 4 * 1024 * 1024;
+const MIN_MEMORY_OFFSET = 4096;
 
 const GIT_DIFF_FLAGS = ["--no-index", "--patience", "--color=always"];
 

+ 3 - 3
tests/expect/tests/call-ret.wast

@@ -97,7 +97,7 @@
                     (i32.eq
                       (i32.and
                         (tee_local $l12
-                          (i32.load offset=61456
+                          (i32.load offset={normalised output}
                             (i32.shl
                               (i32.shr_u
                                 (get_local $l11)
@@ -191,7 +191,7 @@
                     (i32.eq
                       (i32.and
                         (tee_local $l10
-                          (i32.load offset=61456
+                          (i32.load offset={normalised output}
                             (i32.shl
                               (i32.shr_u
                                 (get_local $l9)
@@ -233,7 +233,7 @@
                   (i32.eq
                     (i32.and
                       (tee_local $l10
-                        (i32.load offset=61456
+                        (i32.load offset={normalised output}
                           (i32.shl
                             (i32.shr_u
                               (get_local $l9)

+ 3 - 3
tests/expect/tests/indirect-call.wast

@@ -163,7 +163,7 @@
                   (i32.eq
                     (i32.and
                       (tee_local $l10
-                        (i32.load offset=61456
+                        (i32.load offset={normalised output}
                           (i32.shl
                             (i32.shr_u
                               (get_local $l9)
@@ -217,7 +217,7 @@
                   (i32.eq
                     (i32.and
                       (tee_local $l13
-                        (i32.load offset=61456
+                        (i32.load offset={normalised output}
                           (i32.shl
                             (i32.shr_u
                               (get_local $l12)
@@ -258,7 +258,7 @@
                 (i32.eq
                   (i32.and
                     (tee_local $l10
-                      (i32.load offset=61456
+                      (i32.load offset={normalised output}
                         (i32.shl
                           (i32.shr_u
                             (get_local $l9)

+ 1 - 1
tests/expect/tests/mem32r.wast

@@ -88,7 +88,7 @@
                   (i32.eq
                     (i32.and
                       (tee_local $l10
-                        (i32.load offset=61456
+                        (i32.load offset={normalised output}
                           (i32.shl
                             (i32.shr_u
                               (get_local $l9)

+ 1 - 1
tests/expect/tests/mem32rmw.wast

@@ -91,7 +91,7 @@
                     (i32.eq
                       (i32.and
                         (tee_local $l10
-                          (i32.load offset=61456
+                          (i32.load offset={normalised output}
                             (i32.shl
                               (i32.shr_u
                                 (get_local $l9)

+ 1 - 1
tests/expect/tests/mem32w.wast

@@ -88,7 +88,7 @@
                   (i32.eq
                     (i32.and
                       (tee_local $l10
-                        (i32.load offset=61456
+                        (i32.load offset={normalised output}
                           (i32.shl
                             (i32.shr_u
                               (get_local $l9)

+ 1 - 1
tests/expect/tests/mov-immoffs.wast

@@ -86,7 +86,7 @@
                   (i32.eq
                     (i32.and
                       (tee_local $l10
-                        (i32.load offset=61456
+                        (i32.load offset={normalised output}
                           (i32.shl
                             (i32.shr_u
                               (get_local $l9)

+ 1 - 1
tests/expect/tests/pop.wast

@@ -77,7 +77,7 @@
                   (i32.eq
                     (i32.and
                       (tee_local $l10
-                        (i32.load offset=61456
+                        (i32.load offset={normalised output}
                           (i32.shl
                             (i32.shr_u
                               (get_local $l9)

+ 1 - 1
tests/expect/tests/push.wast

@@ -80,7 +80,7 @@
                   (i32.eq
                     (i32.and
                       (tee_local $l11
-                        (i32.load offset=61456
+                        (i32.load offset={normalised output}
                           (i32.shl
                             (i32.shr_u
                               (get_local $l10)