• Ben Shi's avatar
    cmd/internal/obj/arm64: optimize constant pool · 9be19210
    Ben Shi authored
    "MOVD $0xaaaaaaaa, R2"
    "MOVD $-0x55555555, R3"
    
    For the above instructions, 64-bit constants 0x00000000 aaaaaaaa
    and 0xffffffff aaaaaaab are stored in the constant pool.
    
    This CL optimizes them to
    "MOVWU $0xaaaaaaaa, R2"
    "MOVW $-0x05555555, R3"
    and 32-bit constants 0xaaaaaaaa and 0xaaaaaaab are stored in the
    constant pool.
    
    There is a little size reduction (about total 5KB) in both the go
    executable and the library files.
    
    Change-Id: I7c4bfa6cd9c07da99c69a8f9c15010a0cce3b735
    Reviewed-on: https://go-review.googlesource.com/105775Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    Run-TryBot: Cherry Zhang <cherryyz@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    9be19210
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...