LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 19033 - [MC] Intel syntax assembly parser misparses symbol with immediate offset: [_g0 + 8]
Summary: [MC] Intel syntax assembly parser misparses symbol with immediate offset: [_g...
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: MC (show other bugs)
Version: trunk
Hardware: PC Windows NT
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-03 17:33 PST by Reid Kleckner
Modified: 2014-03-03 19:48 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reid Kleckner 2014-03-03 17:33:56 PST
$ 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
Comment 1 Reid Kleckner 2014-03-03 19:48:17 PST
Fixed in r202774.