[llvm-commits] [llvm] r145895 - /llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Dec 5 19:19:58 PST 2011


On Dec 5, 2011, at 5:53 PM, Jim Grosbach wrote:

> // Relax if the value is too big for a (signed) i8.
> -  return int64_t((Value - 4)>>1) != int64_t(int8_t((Value - 4)>>1));
> +  int64_t Offset = int64_t(Value) - 4;
> +  return Offset > 254 || Offset < -256;

Tony was going to add some isShiftedInt<N,M> templates to compute this stuff.

Tony, did you ever write those functions?

/jakob




More information about the llvm-commits mailing list