ARM base instruction -- ccmp

Conditional Compare (register) sets the value of the condition flags to the result of the comparison of two registers if the condition is TRUE, and an immediate value otherwise.

条件比较(寄存器)如果条件为真,则将条件标志的值设置为两个寄存器的比较结果,否则设置为立即值。

32-bit variant:
CCMP <Wn>, <Wm>, #<nzcv>, <cond>

64-bit variant:
CCMP <Xn>, <Xm>, #<nzcv>, <cond>

ccmp x13, x12, #0x0, ne  # 双重比较. 判断 x13 和 x12 同时存在,即都不等于0。将ne设置到标志寄存器。

  4037b8:    1100079c     add    w28, w28, #0x1              // this->argc+1
  4037bc:    b900527c     str    w28, [x19, #80]             // this->argc++;
  4037c0:    3864cb20     ldrb    w0, [x25, w4, sxtw]     // w0=args[i]
  4037c4:    7100001f     cmp    w0, #0x0
  4037c8:    7a440064     ccmp    w3, w4, #0x4, eq  // eq = none
  4037cc:    54fffecd     b.le    4037a4 <ferror@plt+0x18c4>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值