iunop_lognot_nonzero.c (274B)
1 /* Logical not at 32-bit, nonzero operand: !x with x != 0 yields 0. 2 * Exercises the cmp/cset path with the false outcome. volatile defeats folding. 3 * !7 == 0; 42 + 0 = 42. */ 4 int test_main(void) { 5 volatile int a = 7; 6 int n = !a; /* 0 */ 7 return 42 + n; /* 42 */ 8 }