<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          ARMv8指令學(xué)習(xí)(2)

          作者: 時(shí)間:2016-11-10 來源:網(wǎng)絡(luò) 收藏
          1. UXTB ---- Unsigned extend byte

          UXTB , 等同于 UBFM ,,#0,#7

          本文引用地址:http://www.ex-cimer.com/article/201611/317219.htm

          即:Wd = ZeroExtend(Wn<7:0>)

          從Wn中取出一個(gè)byte,賦給Wd,并把Wd的高3 bytes,用0填充。

          2. UXTH ---- Unsigned extend halfword

          UXTB , 等同于 UBFM ,,#0,#15

          即:Wd = ZeroExtend(Wn<15:0>)

          從Wn中取出2個(gè)byte,賦給Wd,并把Wd的高2 bytes,用0填充。

          3. Bitfield move指令
          (1) BFM : Bitfield move

          BFM Wd,Wn,#r,#s

          if (s>=r )

          Wd = Wn

          else

          Wd<32+s-r,32-r> = Wn

          同時(shí):保持Wd中的其它bit不變
          (2)SBFM: Signed bitfield move

          SBFM Wd,Wn,#r,#s

          if (s>=r )

          Wd = Wn

          else

          Wd<32+s-r,32-r> = Wn

          并擴(kuò)展相應(yīng)的符號(hào)位.


          (3)UBFM:Unsignedbitfield move

          UBFM Wd,Wn,#r,#s

          if (s>=r )

          Wd = Wn

          else

          Wd<32+s-r,32-r> = Wn

          同時(shí):設(shè)置Wd中的其它bit位為0

          4. Bitfield insert and extract指令
          (1) BFI : Bitfield insert

          BFI Wd, Wn, #lsb, #width

          等同于

          BFM Wd, Wn, #((32-lsb)&31) , #(width-1)

          即:

          width bits in Wd , starting at lsb , are replaced by width bits from Wn, starting at bit[0].

          Other bits in Rd are unchanged

          BFI指令,不會(huì)更改PSTATE中的flags


          (2) BFXIL : Bitfield extract and insert low

          BFXIL Wd, Wn, #lsb, #width
          等同于
          BFM Wd,Wn,#lsb,#(lsb+width-1)


          (3) SBFIZ : Signed bitfield insert in zero
          (4) SBFX : Signed bitfield extract
          (5) UBFIZ : Unsigned bitfield insert in zero
          (6) UBFX : Unsigned bitfield extract



          關(guān)鍵詞: ARMv8指令學(xué)

          評(píng)論


          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();