[LLVMdev] wrong codegen

Dietmar Ebner ebner at complang.tuwien.ac.at
Thu May 31 00:45:34 PDT 2007


hi,

On Wed, 2007-05-30 at 09:31 -0700, Chris Lattner wrote:
> On Wed, 30 May 2007, Dietmar Ebner wrote:
> > the current release_20 branch seems to miscompile the following
> reduced
> > testcase (not target architecture specific):
> >
> > #define UInt16 unsigned short
> > #define UInt8 unsigned char
> > UInt8 foo(UInt16 a) {
> >  return (UInt8)(((a >> 10) & 1) << 1);
> > }
> Verified, I filed this bug, I'm investigating.  Thanks!
> 
> http://llvm.org/bugs/show_bug.cgi?id=1473

thanks a lot for the quick fix! it solves the problem for me.

-
dietmar




More information about the llvm-dev mailing list