Fix several issues of document, spec test script and simd (#767)
Fix document issues: add ARC to supported targets, fix how to build wamrc for MacOS. Fix spec case test script issue: the latest wabt has enabled simd by default, no need to add "--enable-simd" option for test script. Fix simd LLVM IR compilation issue: using index calculated by opcode to access array element should not be out of array boundary, add bh_assert() for it. Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
@ -2804,9 +2804,10 @@ wasm_func_call(const wasm_func_t *func,
|
||||
|
||||
/* copy parametes */
|
||||
if (param_count
|
||||
&& !(argc = params_to_argv(func->inst_comm_rt, params->data,
|
||||
wasm_functype_params(func->type),
|
||||
param_count, argv))) {
|
||||
&& (!params
|
||||
|| !(argc = params_to_argv(func->inst_comm_rt, params->data,
|
||||
wasm_functype_params(func->type),
|
||||
param_count, argv)))) {
|
||||
goto failed;
|
||||
}
|
||||
|
||||
@ -2825,8 +2826,9 @@ wasm_func_call(const wasm_func_t *func,
|
||||
|
||||
/* copy results */
|
||||
if (result_count) {
|
||||
if (!(argc = argv_to_results(argv, wasm_functype_results(func->type),
|
||||
result_count, results->data))) {
|
||||
if (!results
|
||||
|| !(argc = argv_to_results(argv, wasm_functype_results(func->type),
|
||||
result_count, results->data))) {
|
||||
goto failed;
|
||||
}
|
||||
results->num_elems = result_count;
|
||||
|
||||
Reference in New Issue
Block a user