Note 1: it crashes only with the value 0xFF in the num <= 0xFF comparison. Any other number, lower or higher, works fine.
Note 2: it doesn't crash at all if num is a uint24_t.
Assertion failed:
../../lib/CodeGen/SelectionDAG/InstrEmitter.cpp:642: void llvm::InstrEmitter::EmitRegSequence(llvm::SDNode*, llvm::DenseMap<llvm::SDValue, unsigned int>&, bool, bool):
Assertion `(NumOps & 1) == 1 && "REG_SEQUENCE must have an odd number of operands!"' failed.
Crash with -O1 and above with this code:
Note 1: it crashes only with the value
0xFF
in thenum <= 0xFF
comparison. Any other number, lower or higher, works fine. Note 2: it doesn't crash at all ifnum
is auint24_t
.Assertion failed:
Backtrace:
Steps: