[llvm-commits] [llvm] r93556 - in /llvm/trunk/lib/Target/MSP430: MSP430ISelLowering.cpp MSP430ISelLowering.h

Alastair Lynn arplynn at gmail.com
Fri Jan 15 14:39:25 PST 2010


Hi Anton-

> +bool MSP430TargetLowering::isZExtFree(const Type *Ty1, const Type *Ty2) const {
> +  // MSP430 implicitly zero-extends 8-bit results in 16-bit registers.
> +  return 0 && Ty1->isInteger(8) && Ty2->isInteger(16);
> +}
> +
> +bool MSP430TargetLowering::isZExtFree(EVT VT1, EVT VT2) const {
> +  // MSP430 implicitly zero-extends 8-bit results in 16-bit registers.
> +  return 0 && VT1 == MVT::i8 && VT2 == MVT::i16;
> +}

Forgive my possible lack of understanding, but surely these shouldn't have the 0 && at the start?

Alastair





More information about the llvm-commits mailing list