1f08c3bdfSopenharmony_ci// canonicalize to == or != 2f08c3bdfSopenharmony_ciint cmp_ltu_eq0(unsigned int x) { return (x < 1) == (x == 0); } 3f08c3bdfSopenharmony_ciint cmp_geu_ne0(unsigned int x) { return (x >= 1) == (x != 0); } 4f08c3bdfSopenharmony_ci 5f08c3bdfSopenharmony_ci// canonicalize to the smaller value 6f08c3bdfSopenharmony_ciint cmp_ltu(unsigned int x) { return (x < 256) == (x <= 255); } 7f08c3bdfSopenharmony_ciint cmp_geu(unsigned int x) { return (x >= 256) == (x > 255); } 8f08c3bdfSopenharmony_ci 9f08c3bdfSopenharmony_ci/* 10f08c3bdfSopenharmony_ci * check-name: canonical-cmpu 11f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file 12f08c3bdfSopenharmony_ci * 13f08c3bdfSopenharmony_ci * check-output-ignore 14f08c3bdfSopenharmony_ci * check-output-returns: 1 15f08c3bdfSopenharmony_ci */ 16