Hi,
The llvm doc says that for a compare instruction the operands must have identical types.
I am wondering whether that means we can’t compare an int64 to an int32 or does does it
mean both operands should be integer types? Thanks.
George
Hi,
The llvm doc says that for a compare instruction the operands must have identical types.
I am wondering whether that means we can’t compare an int64 to an int32 or does does it
mean both operands should be integer types? Thanks.
George
Identical means identical; if you need to compare integers of
different widths, insert a zext or sext as appropriate.
-Eli