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

[MC] Intel syntax assembly parser misparses symbol with immediate offset: [_g0 + 8] #19407

Closed
rnk opened this issue Mar 4, 2014 · 1 comment
Labels
bugzilla Issues migrated from bugzilla mc Machine (object) code

Comments

@rnk
Copy link
Collaborator

rnk commented Mar 4, 2014

Bugzilla Link 19033
Resolution FIXED
Resolved on Mar 03, 2014 19:48
Version trunk
OS Windows NT

Extended Description

$ cat t.s
.bss
.globl _g0
.text
mov rbx, qword ptr [_g0]
mov rcx, qword ptr [_g0 + 8]

$ llvm-mc t.s -triple x86_64-unknown-unknown -x86-asm-syntax=intel
.text
.bss

    .globl  _g0
    .text

    movq    _g0, %rbx
    movq    _g0, %rcx

I'm pretty sure the second load should be at offset 8:
movq %rcx, _g0+8

@rnk
Copy link
Collaborator Author

rnk commented Mar 4, 2014

Fixed in r202774.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla mc Machine (object) code
Projects
None yet
Development

No branches or pull requests

1 participant