安騰(R) 處理器主題並行右移指令

pshr

操作 字型慣例

指令型別 I

格式

(qp) pshr2 r1 = r3, r2 signed_form, two_byte_form, variable_form

(qp) pshr2 r1 = r3, count5 signed_form, two_byte_form, fixed_form

(qp) pshr2.u r1 = r3, r2 unsigned_form, two_byte_form, variable_form

(qp) pshr2.u r1 = r3, count5 unsigned_form, two_byte_form, fixed_form

(qp) pshr4 r1 = r3, r2 signed_form, four_byte_form, variable_form

(qp) pshr4 r1 = r3, count5 signed_form, four_byte_form, fixed_form

(qp) pshr4.u r1 = r3, r2 unsigned_form, four_byte_form, variable_form

(qp) pshr4.u r1 = r3, count5 unsigned_form, four_byte_form, fixed_form


說明

GRr3 的數據元素各自獨立地進行右移,移位量由 GR r2 或立即數欄位 count5 中的標量移位量指定。每個元素的高位使用 GR r3 中數據元素符號位的初始值(算術移位)或零(邏輯移位)填充。移位量解釋為無符號數字。移位量大於 15(16 位數量)或 31(32 位數量)時,產生的結果是全零或全一,具體取決於 GR r3 中數據元素符號位的初始值,以及進行的是有符號還是無符號移位。結果放入 GR r1