open64-compiler / open64

open64 compiler
78 stars 29 forks source link

[SPEC2006] w2ll: OPCODE_make_op: no opcode available: 0 0 0 #9

Open Yvan-xy opened 1 year ago

Yvan-xy commented 1 year ago

Extracted from 445.gobmk/engine/aftermath.c xcalcc -c case.c

*aftermath_genmove_under_control;
aftermath_genmove_distance;
aftermath_genmove() {
  int pos;
  for (; pos; pos++)
    if (aftermath_genmove_distance)
      aftermath_genmove_under_control[pos] = 0;
    else
      aftermath_genmove_under_control[pos] = 1;
}

Got the following assertion:

### Assertion failure at line 223 of /home/xman/w2ll_dev/open64_build/../open64/osprey/common/com/opcode.h:
### Compiler Error during Reading WHIRL file phase:
### OPCODE_make_op: no opcode available: 0 0 0
Support Message:
    w2ll() [0x25679e1]
    w2ll() [0x2567ac8]
    w2ll(Fail_FmtAssertion+0x2d8) [0x2569beb]
    w2ll(OPCODE_make_op+0x64) [0x43eba8]
    w2ll(_Z9WN_opcodePK2WN+0x40) [0x440456]
    /home/xman/w2ll_dev/open64_install/lib/gcc-lib/x86_64-open64-linux/5.0/be.so(IPA_WN_MAP_Set+0x50) [0x7f1e4df3b575]
    /home/xman/w2ll_dev/open64_install/lib/gcc-lib/x86_64-open64-linux/5.0/be.so(_ZN22ARRAY_DIRECTED_GRAPH1610Add_VertexEP2WN+0x6d) [0x7f1e4ddbd173]
    /home/xman/w2ll_dev/open64_install/lib/gcc-lib/x86_64-open64-linux/5.0/be.so(Depgraph_Read+0xf9) [0x7f1e4ddbcb5d]
    /home/xman/w2ll_dev/open64_install/lib/gcc-lib/x86_64-open64-linux/5.0/be.so(_Z15WN_get_depgraphPvP7pu_info+0x144) [0x7f1e4def90bc]
    /home/xman/w2ll_dev/open64_install/lib/gcc-lib/x86_64-open64-linux/5.0/be.so(_Z15Read_Local_InfoP8mem_poolP7pu_info+0x2d1) [0x7f1e4def9a3d]
    w2ll() [0x434864]
    w2ll() [0x435d6e]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f1e4d400083]
    w2ll() [0x41fede]
Yvan-xy commented 1 year ago

e89cf5846dac967b092e9505a1afeeb1 It failed to load the WHIRL IR from the ".O" file.

zqb-all commented 1 year ago

similar error in 456.hmmer

https://github.com/open64-compiler/open64/issues/38