[llvm-commits] [llvm] r90109 - /llvm/trunk/test/CodeGen/X86/scalar_widen_div.ll

Duncan Sands baldrick at free.fr
Mon Nov 30 04:28:44 PST 2009


Hi,

> +; Verify when widening a divide/remainder operation, we only generate a
> +; divide/rem per element since divide/remainder can trap.

you could also ensure that the widened divisor always has 1 in the extra
elements.  This is analogous to integer promotion where the extra bits are
"undef" in general, but need to be constrained to certain values (usually
zero or one) in some cases.

Ciao,

Duncan.



More information about the llvm-commits mailing list