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

att parser crashes for vbroadcastsd -0x... #61

Closed
jdomke opened this issue Dec 25, 2020 · 0 comments
Closed

att parser crashes for vbroadcastsd -0x... #61

jdomke opened this issue Dec 25, 2020 · 0 comments

Comments

@jdomke
Copy link
Contributor

jdomke commented Dec 25, 2020

Was trying OSACA for some code snippets from MKL lib, but its crashing on me.

Traceback (most recent call last):
  File "/home/jd/.local/lib/python3.6/site-packages/osaca/osaca.py", line 270, in inspect
    parsed_code = parser.parse_file(code)
  File "/home/jd/.local/lib/python3.6/site-packages/osaca/parser/base_parser.py", line 57, in parse_file
    asm_instructions.append(self.parse_line(line, i + 1 + start_line))
  File "/home/jd/.local/lib/python3.6/site-packages/osaca/parser/parser_x86att.py", line 258, in parse_line
    'Could not parse instruction on line {}: {!r}'.format(line_number, line)
ValueError: Could not parse instruction on line 6: 'vbroadcastsd -0x10(%rbp),%ymm3'

Here the asm fragment:

    # OSACA-BEGIN
.L19:
vfmadd231pd %ymm0,%ymm3,%ymm5
vfmadd231pd %ymm1,%ymm3,%ymm9
vfmadd231pd %ymm2,%ymm3,%ymm13
vbroadcastsd -0x10(%rbp),%ymm3
vfmadd231pd %ymm0,%ymm3,%ymm6
vfmadd231pd %ymm1,%ymm3,%ymm10
vfmadd231pd %ymm2,%ymm3,%ymm14
vbroadcastsd -0x8(%rbp),%ymm3
sub    $0xffffffffffffff80,%rbp
vfmadd231pd %ymm0,%ymm3,%ymm7
vmovupd 0x100(%rbx),%ymm0
vfmadd231pd %ymm1,%ymm3,%ymm11
vmovupd 0x120(%rbx),%ymm1
vfmadd231pd %ymm2,%ymm3,%ymm15
vmovupd 0x140(%rbx),%ymm2
sub    $0xfffffffffffffe80,%rbx
vbroadcastsd -0x80(%rbp),%ymm3
sub    $0x1,%rax
jne     .L19
    # OSACA-END
@JanLJL JanLJL closed this as completed in 3c7971b Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant