Update spec test to latest commit (#3293)
- Update spec test cases to commit bc76fd79cfe61033d7f4ad4a7e8fc4f996dc5ba8 on Apr. 3 - Update wabt binary to 1.0.34 to support newer spec cases - Add comparison between table declared elem type and table elem segment value type - Add a function to decide whether to execute test cases in a running mode - Keep using interpreter in GC spec because wat2wasm in wabt can't compile if.wast w/o errors - Re-factoring threads spec test case processing - Since wabt 1.0.34 release isn't compatible with ubuntu 20.04, compile it from source code - Disable CI to run aot multi-module temporarily, and will enable it in another PR
This commit is contained in:
@ -120,7 +120,6 @@ check_global_init_expr(const AOTModule *module, uint32 global_index,
|
||||
return false;
|
||||
}
|
||||
|
||||
#if WASM_ENABLE_GC == 0
|
||||
/**
|
||||
* Currently, constant expressions occurring as initializers of
|
||||
* globals are further constrained in that contained global.get
|
||||
@ -129,24 +128,26 @@ check_global_init_expr(const AOTModule *module, uint32 global_index,
|
||||
* And initializer expression cannot reference a mutable global.
|
||||
*/
|
||||
if (global_index >= module->import_global_count
|
||||
|| module->import_globals->type.is_mutable) {
|
||||
set_error_buf(error_buf, error_buf_size,
|
||||
"constant expression required");
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
if (global_index >= module->import_global_count + module->global_count) {
|
||||
/* make spec test happy */
|
||||
#if WASM_ENABLE_GC != 0
|
||||
+ module->global_count
|
||||
#endif
|
||||
) {
|
||||
set_error_buf_v(error_buf, error_buf_size, "unknown global %u",
|
||||
global_index);
|
||||
return false;
|
||||
}
|
||||
if (global_index < module->import_global_count
|
||||
&& module->import_globals[global_index].type.is_mutable) {
|
||||
|
||||
if (
|
||||
/* make spec test happy */
|
||||
#if WASM_ENABLE_GC != 0
|
||||
global_index < module->import_global_count &&
|
||||
#endif
|
||||
module->import_globals[global_index].type.is_mutable) {
|
||||
set_error_buf(error_buf, error_buf_size,
|
||||
"constant expression required");
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user