runtime
runtime copied to clipboard
[RyuJIT/ARM32] Bad exit code in JIT/Methodical/VT/callconv/_il_reljumper4
FAILED - JIT/Methodical/VT/callconv/_il_reljumper4/_il_reljumper4.sh
BEGIN EXECUTION
/home/mskvortsov/clr-checked/corerun _il_reljumper4.exe
Expected: 100
Actual: 127
END EXECUTION - FAILED
FAILED - JIT/Methodical/VT/callconv/_il_reljumper5/_il_reljumper5.sh
BEGIN EXECUTION
/home/mskvortsov/clr-checked/corerun _il_reljumper5.exe
Expected: 100
Actual: 127
END EXECUTION - FAILED
The method sub is miscompiled by the new backend:
--- legacy.disasm 2017-07-04 13:46:34.076709552 +0300
+++ ryujit.disasm 2017-07-04 13:46:27.291751526 +0300
@@ -29,7 +29,6 @@
ldr r0, [sp+0x04] // [V00 this]
ldr r1, [sp] // [V01 RetBuf]
ldr r2, [sp+0x10] // [V02 arg1]
- ldr r3, [sp+0x14] // [V02 arg1+0x04]
G_M8345_IG03:
add sp, 12
The bug is related to struct passing and seems to be in the genJmpMethod() in the loop at codegenarmarch.cpp:2167 (moving any un-enregistered register arguments back to their register).
cc @dotnet/arm32-contrib
In my environment, the result is
FAILED - [ 1]JIT/Methodical/VT/callconv/_il_reljumper4/_il_reljumper4.sh
BEGIN EXECUTION
/nfs/rbp3/test/coreoverlay_checked_arm/corerun _il_reljumper4.exe
Expected: 100
Actual: 111
END EXECUTION - FAILED
FAILED - [ 2]JIT/Methodical/VT/callconv/_il_reljumper5/_il_reljumper5.sh
BEGIN EXECUTION
/nfs/rbp3/test/coreoverlay_checked_arm/corerun _il_reljumper5.exe
Expected: 100
Actual: 111
END EXECUTION - FAILED
But I could get same result when I tried to run tests separately.
/nfs/rbp3/test/coreoverlay_checked_arm$ ./corerun /nfs/rbp3/test/test/Release/JIT/Methodical/VT/callconv/_il_reljumper4/_il_reljumper4.exe
/nfs/rbp3/test/coreoverlay_checked_arm$ echo $?
127
/nfs/rbp3/test/coreoverlay_checked_arm$ ./corerun /nfs/rbp3/test/test/Release/JIT/Methodical/VT/callconv/_il_reljumper5/_il_reljumper5.exe
/nfs/rbp3/test/coreoverlay_checked_arm$ echo $?
127
@BruceForstall Please assign this to me.
@hseok-oh Does dotnet/coreclr#13142 fixes this issue and can we close this issue?
@hqueue I think so @mskvortsov Please close this issue.