码迷,mamicode.com
首页 > 其他好文 > 详细

Distinguishing between 32-bit and 64-bit A64 instructions

时间:2020-01-13 20:02:44      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:HERE   within   gen   include   bsp   most   sep   could   ring   

Distinguishing between 32-bit and 64-bit A64 instructions
Most integer instructions in the A64 instruction set have two forms, which operate on either 32-bit or 64-bit values within the 64-bit general-purpose register file.
When looking at the register name that the instruction uses:
• If the register name starts with X, it is a 64-bit register.
• If the register name starts with W, it is a 32-bit register.

 

When a 32-bit register form is selected:
• Right shifts and rotates inject at bit 31, instead of bit 63.
• The condition flags, where set by the instruction, are computed from the lower 32 bits.
• Writes to the W register set bits [63:32] of the X register to zero.
This distinction applies even when the results of a 32-bit register form would be indistinguishable from the lower 32 bits computed by the equivalent 64-bit register form. For example, A64 includes separate 32-bit and 64-bit register forms of the ORR instructions. A 32-bit bitwise ORR could just as easily be performed using a 64-bit ORR and ignoring the top 32 bits of the result.

Distinguishing between 32-bit and 64-bit A64 instructions

标签:HERE   within   gen   include   bsp   most   sep   could   ring   

原文地址:https://www.cnblogs.com/aspirs/p/12188654.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!