问题
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