Fixes for real comparisons, rotates, and undefined llvm intrinsics