Codegen fix atomic_rmw_loop missing move result to dst register On riscv64. (#5898)

* fix issue5884.

* fix issue5884

* fix test failure

* fix atomic rmw missing move result to dst register.

* specify little endian some s390x can pass test.
This commit is contained in:
yuyang
2023-03-06 19:27:46 +08:00
committed by GitHub
parent ad584f428a
commit 20198d94c6
2 changed files with 40 additions and 13 deletions

View File

@@ -0,0 +1,20 @@
test run
target aarch64
target x86_64
target riscv64
target s390x
function %a(i64, i16) -> i16 {
ss0 = explicit_slot 8
block0(v0: i64, v1: i16):
v2 = stack_addr.i64 ss0+0
store little v0, v2
v3 = stack_addr.i64 ss0+6
v4 = atomic_rmw.i16 little or v3, v1
return v4
}
; run: %a(8608481011852310776, 0) == 30583