Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPEC2006] w2ll: Find_parm_type cannot find _temp_vararg1 #10

Open
Yvan-xy opened this issue Apr 27, 2023 · 0 comments
Open

[SPEC2006] w2ll: Find_parm_type cannot find _temp_vararg1 #10

Yvan-xy opened this issue Apr 27, 2023 · 0 comments
Labels
w2ll WHIRL to LLVM

Comments

@Yvan-xy
Copy link
Member

Yvan-xy commented Apr 27, 2023

Extracted from 400.perlbench
xcalcc -S case.c

Perl_deb(char pat, ...) {}

Got the following assertion:

### Assertion failure ../../../../open64/osprey/ir_tools/whirl2llvm.cxx:1082:
### Find_parm_type cannot find _temp_vararg1
### For 4312.O in Perl_deb (xcalcc:438)

The WHIRL dump is:

 LOC 0 0 source files:	1	"/home/xman/w2ll_dev/open64_build/4312.c"
FUNC_ENTRY <1,50,Perl_deb> {line: 1/1}
 IDNAME 0 <2,1,pat>
BODY
 BLOCK {line: 0/0}
 PRAGMA 0 72 <null-st> 0 (0x0) # WOPT_FINISHED_OPTIMIZATION, 0, 4 {line: 0/0}
 END_BLOCK
 BLOCK {line: 0/0}
 END_BLOCK
 BLOCK {line: 1/1}
  I8I8LDID 6 <1,5,.preg_I8> T<5,.predef_I8,8> # $6
 I8STID 0 <2,11,_temp_vararg1> T<55,.predef_I8,8> {line: 1/1}
  I8I8LDID 7 <1,5,.preg_I8> T<5,.predef_I8,8> # $7
 I8STID 0 <2,12,_temp_vararg2> T<55,.predef_I8,8> {line: 1/1}
  I8I8LDID 8 <1,5,.preg_I8> T<5,.predef_I8,8> # $8
 I8STID 0 <2,13,_temp_vararg3> T<55,.predef_I8,8> {line: 1/1}
  I8I8LDID 9 <1,5,.preg_I8> T<5,.predef_I8,8> # $9
 I8STID 0 <2,14,_temp_vararg4> T<55,.predef_I8,8> {line: 1/1}
  I8I8LDID 10 <1,5,.preg_I8> T<5,.predef_I8,8> # $10
 I8STID 0 <2,15,_temp_vararg5> T<55,.predef_I8,8> {line: 1/1}
   I4I4LDID 1 <1,5,.preg_I8> T<4,.predef_I4,8> # $1
  I4PARM 2 T<4,.predef_I4,4> #  by_value
   U4INTCONST 8 (0x8)
  I4PARM 2 T<4,.predef_I4,4> #  by_value
   U8LDA 0 <2,16,_temp_vararg6> T<57,anon_ptr.,8>
  U8PARM 2 T<9,.predef_U8,8> #  by_value
 VINTRINSIC_CALL <805,SAVE_XMMS> 0 # flags 0x0 {line: 1/1}
 PRAGMA 0 119 <null-st> 0 (0x0) # PREAMBLE_END {line: 1/1}
 RETURN {line: 1/1}
 END_BLOCK
@Yvan-xy Yvan-xy added the w2ll WHIRL to LLVM label Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
w2ll WHIRL to LLVM
Projects
None yet
Development

No branches or pull requests

1 participant