kit

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

iunop_lognot64.c (264B)


      1 /* Logical not at 64-bit (long): !x is `x == 0` on a 64-bit operand, emits a
      2  * 64-bit cmp + cset. volatile defeats folding. !0L == 1, scaled to 42. */
      3 int test_main(void) {
      4   volatile long a = 0;
      5   long n = !a;          /* 1 */
      6   return (int)(n * 42); /* 42 */
      7 }