Consider: int test(int X) { return X%255; } The PPC backend lowers this to mulhw+stuff, the X86 backend should too. It is the major reason we are slower at Benchmarks/Misc/ReedSolomon.c than GCC. -Chris
Fixed. Patch here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061009/038537.html Testcase here: Regression/CodeGen/X86/rem.ll llc is now faster than GCC on reedsolomon.c. -Chris