• fanzha02's avatar
    cmd/internal/obj/arm64: fix assemble hlt/hvc/smc/brk/clrex bug · 436f2d8d
    fanzha02 authored
    When instruction has only one argument, Go parser saves the
    argument value into prog.From without any special handling.
    But assembler gets the argument value from prog.To.
    
    The fix adds special handling for CLREX and puts other instructions
    arguments value into prog.From.
    
    Uncomment hlt/hvc/smc/brk/dcps1/dcps2/dcps3/clrex test cases.
    
    Fixes #20765
    
    Change-Id: I1fc0d2faafb19b537cab5a665bd4af56c3a2c925
    Reviewed-on: https://go-review.googlesource.com/78275
    Run-TryBot: Cherry Zhang <cherryyz@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    436f2d8d
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...