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:
@ -267,7 +267,7 @@ apply_relocation(AOTModule *module,
|
||||
|
||||
case R_RISCV_HI20:
|
||||
{
|
||||
val = (int32)(intptr_t)(symbol_addr + reloc_addend);
|
||||
val = (int32)(intptr_t)((uint8 *)symbol_addr + reloc_addend);
|
||||
|
||||
CHECK_RELOC_OFFSET(sizeof(uint32));
|
||||
if (val != (intptr_t)((uint8 *)symbol_addr + reloc_addend)) {
|
||||
@ -284,7 +284,7 @@ apply_relocation(AOTModule *module,
|
||||
|
||||
case R_RISCV_LO12_I:
|
||||
{
|
||||
val = (int32)(intptr_t)(symbol_addr + reloc_addend);
|
||||
val = (int32)(intptr_t)((uint8 *)symbol_addr + reloc_addend);
|
||||
|
||||
CHECK_RELOC_OFFSET(sizeof(uint32));
|
||||
if (val != (intptr_t)((uint8 *)symbol_addr + reloc_addend)) {
|
||||
@ -301,7 +301,7 @@ apply_relocation(AOTModule *module,
|
||||
|
||||
case R_RISCV_LO12_S:
|
||||
{
|
||||
val = (int32)(intptr_t)(symbol_addr + reloc_addend);
|
||||
val = (int32)(intptr_t)((uint8 *)symbol_addr + reloc_addend);
|
||||
|
||||
CHECK_RELOC_OFFSET(sizeof(uint32));
|
||||
if (val != (intptr_t)((uint8 *)symbol_addr + reloc_addend)) {
|
||||
|
||||
Reference in New Issue
Block a user