• diaxu01's avatar
    cmd/internal/obj/arm64: add support of NOOP instruction · 3876bd67
    diaxu01 authored
    This patch uses symbol NOOP to support arm64 instruction NOP. In
    arm64, NOP stands for that No Operation does nothing, other than
    advance the value of the program counter by 4. This instruction
    can be used for instruction alignment purposes. This patch uses
    NOOP to support arm64 instruction NOP, because we have a generic
    "NOP" instruction, which is a zero-width pseudo-instruction.
    
    In arm64, instruction NOP is an alias of HINT #0. This patch adds
    test cases for instruction HINT #0.
    
    Change-Id: I54e6854c46516eb652b412ef9e0f73ab7f171f8c
    Reviewed-on: https://go-review.googlesource.com/c/go/+/200578Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
    Run-TryBot: Cherry Zhang <cherryyz@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    3876bd67
anames.go 4.95 KB