kit

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

iunop_lognot.c (247B)


      1 /* Logical not at 32-bit (int): !x is `x == 0`, emits cmp + cset (no branch on
      2  * aarch64). volatile defeats folding. !0 == 1, and we scale to 42. */
      3 int test_main(void) {
      4   volatile int a = 0;
      5   int n = !a;    /* 1 */
      6   return n * 42; /* 42 */
      7 }