@@ -8511,7 +8511,7 @@ def test_binaryen_warn_mem(self):
85118511 self.run_process([EMCC, test_file('hello_world.c'), '-sINITIAL_MEMORY=' + str(16 * 1024 * 1024), '--pre-js', 'pre.js', '-sWASM_ASYNC_COMPILATION=0', '-sIMPORTED_MEMORY'])
85128512 out = self.run_js('a.out.js', assert_returncode=NON_ZERO)
85138513 self.assertContained('LinkError', out)
8514- self.assertContained("memory import 2 has a larger maximum size 800 than the module's declared maximum", out)
8514+ self.assertContained("memory import 1 has a larger maximum size 800 than the module's declared maximum", out)
85158515 self.assertNotContained('hello, world!', out)
85168516 # and with memory growth, all should be good
85178517 self.run_process([EMCC, test_file('hello_world.c'), '-sINITIAL_MEMORY=' + str(16 * 1024 * 1024), '--pre-js', 'pre.js', '-sALLOW_MEMORY_GROWTH', '-sWASM_ASYNC_COMPILATION=0', '-sIMPORTED_MEMORY'])
@@ -10458,18 +10458,10 @@ def compile(flags):
1045810458 compile(['-mnontrapping-fptoint', '-c'])
1045910459 verify_features_sec('nontrapping-fptoint', True)
1046010460
10461- compile(['-sMIN_SAFARI_VERSION=120000'])
10462- verify_features_sec_linked('sign-ext', False)
10463-
1046410461 compile(['-sMIN_SAFARI_VERSION=140000'])
10465- verify_features_sec_linked('bulk-memory', True) # XXX fix before commit
10462+ verify_features_sec_linked('bulk-memory', False)
1046610463 verify_features_sec_linked('nontrapping-fptoint', False)
1046710464
10468- compile(['-sMIN_SAFARI_VERSION=140100', '-pthread'])
10469- verify_features_sec_linked('atomics', True)
10470- verify_features_sec_linked('bulk-memory', True)
10471-
10472- # BIGINT causes binaryen to not run, and keeps the target_features section after link
1047310465 # Setting this SAFARI_VERSION should enable bulk memory because it links in emscripten_memcpy_bulkmem
1047410466 # However it does not enable nontrapping-fptoint yet because it has no effect at compile time and
1047510467 # no libraries include nontrapping yet.
@@ -10484,14 +10476,6 @@ def compile(flags):
1048410476 # -mno-bulk-memory at link time overrides MIN_SAFARI_VERSION
1048510477 verify_features_sec_linked('bulk-memory', False)
1048610478
10487- # feature_matrix has the (IMO strange) behavior that enabling one feature supported by
10488- # a particular browser version will cause all other features supported by that version
10489- # to be enabled as well.
10490- # TODO: is this test redundant with test_signext_lowering?
10491- compile(['-sWASM_BIGINT'])
10492- verify_features_sec_linked('bulk-memory', True)
10493- verify_features_sec_linked('nontrapping-fptoint', True)
10494-
1049510479 def test_js_preprocess(self):
1049610480 # Use stderr rather than stdout here because stdout is redirected to the output JS file itself.
1049710481 create_file('lib.js', '''
0 commit comments