aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
diff options
context:
space:
mode:
authorAmmar Faizi <[email protected]>2021-10-24 19:43:22 +0200
committerPaul E. McKenney <[email protected]>2021-11-30 17:26:42 -0800
commit7bdc0e7a390511cd3df8194003b908f15a6170a5 (patch)
tree1492a313d15e88b09f758f9d5de07cb0c45a5ab5 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
parentbf91666959eeac44fb686e9359e37830944beef2 (diff)
tools/nolibc: x86-64: Use `mov $60,%eax` instead of `mov $60,%rax`
Note that mov to 32-bit register will zero extend to 64-bit register. Thus `mov $60,%eax` has the same effect with `mov $60,%rax`. Use the shorter opcode to achieve the same thing. ``` b8 3c 00 00 00 mov $60,%eax (5 bytes) [1] 48 c7 c0 3c 00 00 00 mov $60,%rax (7 bytes) [2] ``` Currently, we use [2]. Change it to [1] for shorter code. Signed-off-by: Ammar Faizi <[email protected]> Signed-off-by: Willy Tarreau <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions