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

Vladimir Prus ghost at cs.msu.su
Thu Jul 8 06:54:44 PDT 2004

The above-mentioned test contains this:

   long B53 = - (1LL << 53);

strictly speaking, this is not correct code. The C standard says about shift: 
"if the value of the first operator is ... or greater than ... the width of 
the promoted left operand, the behaviour is underfined".


- Volodya

More information about the llvm-dev mailing list