[LLVMdev] UnitTests/2002-05-19-DivTest.c

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu Jul 8 08:41:01 PDT 2004


On Thu, 2004-07-08 at 08:31, Vladimir Prus wrote:
> Alkis Evlogimenos wrote:
> 
> > > But the test still has a problem ;-)
> > >
> > >   printf("%ld\n", Arg / (1LL << 4));
> > >
> > > Again, the passed value is long long, and format specifier is '%ld'. What
> > > about the attached patch?
> >
> > I think testL has another problem. It takes a long argument which in C I
> > think is a 4-byte int, right?
> 
> Yes, but I don't understand what follows. I though conversion from 4 to 8 
> bytes is part of what this test is about.......

Looking at the log it seems that the original intent was to have 32 and
64 bit testing of shifts and division.

revision 1.2
date: 2003/07/07 22:46:59;  author: vadve;  state: Exp;  lines: +19 -4
Made this much more useful by using
(a) larger shifts than just 1,
(b) shifts with different ranges, and
(c) separate tests for 32-bit and 64-bit operands.

-- 

Alkis




More information about the llvm-dev mailing list