是否可以在LLVM IR代码中指定十六进制数字?

时间:2013-04-30 23:22:53

标签: llvm llvm-ir

例如:

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

1 个答案:

答案 0 :(得分:2)

IR reference manual的扫描中,看起来十六进制文字是为浮点数的表示而保留的,这些浮点数无法用合理的位数精确表示。

这解释了为什么您的错误消息显示floating point constant无效。

相关问题