是否可以在LLVM IR代码中指定一个十六进制数字? [英] Is it possible to specify a hexadecimal number in LLVM IR code?

查看:95
本文介绍了是否可以在LLVM IR代码中指定一个十六进制数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如:

error: floating point constant invalid for type
      %3 = and i8 0x80, %2
                  ^

推荐答案

来自 IR参考手册,看起来十六进制字面量被保留用于表示浮点数,而浮点数不能以合理的位数精确表示.

From a scan of the IR reference manual, it looks like hexadecimal literals are reserved for the representation of floating point numbers that cannot be exactly represented in a reasonable number of digits.

这解释了为什么您的错误消息指出floating point constant无效.

Which explains why your error message says that the floating point constant is invalid.

这篇关于是否可以在LLVM IR代码中指定一个十六进制数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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