[llvm-dev] undef value

Anastasiya Ruzhanskaya via llvm-dev llvm-dev at lists.llvm.org
Tue Jul 25 05:15:43 PDT 2017

I have also tested and found out, that however in this example:
  unsigned a = 1;
  unsigned b = a << 33;
  for (int i = 0; i < 32; i++)
    printf("%d ", ((b >> i) & 1));
  return b;
 I get the undef value at the end:
 * ret i32 undef*
he bits are printed correctly - shifted by the modulo, as is defined in the
standard. What is the explanation?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170725/81d9e78b/attachment.html>

More information about the llvm-dev mailing list