ctl_ternary.c (325B)
1 /* The ?: ternary operator. volatile operands defeat folding so the conditional 2 * select (compare + conditional branch, or a csel) is really emitted and its 3 * branch/select round-trips. a > b picks a (=42); else would pick b. */ 4 int test_main(void) { 5 volatile int a = 42, b = 17; 6 int r = (a > b) ? a : b; 7 return r; 8 }