ibit_not.c (255B)
1 /* 32-bit bitwise NOT (~). On aarch64 `~x` lowers to `mvn w, w` (ORN with the 2 * zero register). volatile defeats folding. Branch-free, no relocs. 3 * x = 0xFFFFFFD5 (-43); ~x = 0x2A = 42. */ 4 int test_main(void) { 5 volatile int x = -43; 6 return ~x; 7 }