kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

iunop_not_unsigned.c (229B)


      1 /* Bitwise complement at 32-bit unsigned: ~x emits `mvn w`. Well-defined.
      2  * volatile defeats folding. ~0xFFFFFFD5u = 0x2A = 42. */
      3 int test_main(void) {
      4   volatile unsigned a = 0xFFFFFFD5u;
      5   unsigned n = ~a;
      6   return (int)n;
      7 }