Is it possible to specify a hexadecimal number in LLVM IR code?

爷,独闯天下 提交于 2019-12-24 03:48:19

问题


For example:

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

回答1:


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.

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



来源:https://stackoverflow.com/questions/16310509/is-it-possible-to-specify-a-hexadecimal-number-in-llvm-ir-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!