ARM体系结构中的GT和HI指令之间有什么区别? [英] What is the difference between GT and HI instruction in ARM architecture?

查看:81
本文介绍了ARM体系结构中的GT和HI指令之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"GT"大于而"HI"大于.我认为两者的含义相同.指令集图像

"GT" is greater than and "HI" is higher than. I think both have the same meaning.The instruction Set Image

推荐答案

HI指令将其操作数设为无符号,因此基本上使用C和Z标志进行操作另一方面,GT或GE将操作数作为带符号的数字,并使用标志N(负)和V(溢出).GE和GT都相同,但是GE也接受清除的Z标志.因此,如果您使用无符号数字,那么两者将产生相同的输出.

HI instruction takes its operands as unsigned so basically it uses C and Z flag for its operation On the other hand GT or GE takes operands as signed numbers and uses flags N(negative) and V(overflow). Both GE and GT are same but GE accepts a cleared Z flag, too. So if you are using unsigned numbers then both will produce same output.

这篇关于ARM体系结构中的GT和HI指令之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆