runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[RyuJIT/arm32][JitStress=1] Assertion failed 'NYI: Unimplemented node type ADDR'

Open BruceForstall opened this issue 9 years ago • 5 comments

From Windows RyuJIT/arm32 test run with COMPlus_JitStress=1:

 "c:\brucefo\core_root\Windows_NT.arm.Checked.2017-08-23\corerun.exe" hfa_nd0E_r.exe

Assert failure(PID 7152 [0x00001bf0], Thread: 8996 [0x2324]): Assertion failed 'NYI: Unimplemented node type ADDR' in 'HFATest.TestCase:Main():int' (IL size 631)

    File: e:\gh\coreclr2\src\jit\lsraarm.cpp Line: 731
    Image: c:\brucefo\core_root\Windows_NT.arm.Checked.2017-08-23\CoreRun.exe

Test:

JIT\jit64\hfa\main\testE\hfa_nd0E_r\hfa_nd0E_r.cmd (TEST_IDENTIFIER = Tests.lst=hfa_nd0E_r.cmd_7442)

BruceForstall avatar Sep 01 '17 04:09 BruceForstall

@dotnet/arm32-contrib

BruceForstall avatar Sep 01 '17 04:09 BruceForstall

It is surprising that ADDR never generated in non-stress test. I just reproduced in my environment and I'm going tol take a look at this.

@BruceForstall Please assign this to me.

hqueue avatar Sep 01 '17 04:09 hqueue

@hqueue It's might not mean ADDR never generated in non-stress test. Generated ADDR may contained to other node.

hseok-oh avatar Sep 01 '17 04:09 hseok-oh

It seems that during morphing, ADDR has CALL which returns a double register (which is actually a struct with one double member) as a child. But GT_ADDR should not have a value in a register.

hk0110@albireo:~/work/dxl/dotnet/github/hqueue/mydotnet/debugging/20170901-issue_13739  (master)$ vi after.jitdump.txt 

               fgMorphTree BB22, stmt 95 (before)
                              [000420] --C-G--------             /--*  CALL      struct HFATest.TestMan.Get_HFA01
                              [000426] -AC-----R----             *  ASG       struct (copy)
                              [000424] D------------             \--*  LCL_VAR   struct V37 tmp29
               argSlots=0, preallocatedArgCount=0, nextSlotNum=0, outgoingArgSpaceSize=0

               fgMorphCopyBlock:block assignment to morph:
                              [000420] --C-G+-------             /--*  CALL      double HFATest.TestMan.Get_HFA01
                              [000426] -AC-G---R----             *  ASG       struct (copy)
                              [000424] D----+-N-----             \--*  LCL_VAR   struct V37 tmp29
                src is a call this requires a CopyBlock.

               Local V37 should not be enregistered because: written in a block op

               fgMorphTree BB22, stmt 95 (after)
                              [001999] --C-G--------             /--*  IND       struct
                              [001998] --C-G--------             |  \--*  ADDR      byref
                              [000420] --C-G+-------             |     \--*  CALL      double HFATest.TestMan.Get_HFA01
                              [000426] -AC-G+--R----             *  ASG       struct (copy)
                              [000424] D----+-N-----             \--*  LCL_VAR   struct V37 tmp29

hqueue avatar Sep 05 '17 08:09 hqueue

Among JIT/jit64/hfa, following three tests failed with same assertion.

FAILED   - [  65][  17s]JIT/jit64/hfa/main/testE/hfa_nd0E_r/hfa_nd0E_r.sh
FAILED   - [  71][  15s]JIT/jit64/hfa/main/testE/hfa_nf0E_r/hfa_nf0E_r.sh
FAILED   - [  85][  10s]JIT/jit64/hfa/main/testE/hfa_sf1E_r/hfa_sf1E_r.sh

These tests are PASSED with submitted PR dotnet/coreclr#13806.

hqueue avatar Sep 06 '17 10:09 hqueue