kit

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

iunop_neg.c (236B)


      1 /* Arithmetic negate at 32-bit (int): -x emits `neg w` (sub from wzr).
      2  * volatile defeats folding so the negate is really emitted.
      3  * Exit code: -(-42) = 42. */
      4 int test_main(void) {
      5   volatile int a = -42;
      6   int n = -a;
      7   return n;
      8 }