1f08c3bdfSopenharmony_citypedef signed int sint; 2f08c3bdfSopenharmony_citypedef unsigned int uint; 3f08c3bdfSopenharmony_ci 4f08c3bdfSopenharmony_cisint seq(sint p, sint a) { return (123 == p) == (p == 123); } 5f08c3bdfSopenharmony_cisint sne(sint p, sint a) { return (123 != p) == (p != 123); } 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_cisint slt(sint p, sint a) { return (123 > p) == (p < 123); } 8f08c3bdfSopenharmony_cisint sle(sint p, sint a) { return (123 >= p) == (p <= 123); } 9f08c3bdfSopenharmony_cisint sge(sint p, sint a) { return (123 <= p) == (p >= 123); } 10f08c3bdfSopenharmony_cisint sgt(sint p, sint a) { return (123 < p) == (p > 123); } 11f08c3bdfSopenharmony_ci 12f08c3bdfSopenharmony_ciuint ueq(uint p, uint a) { return (123 == p) == (p == 123); } 13f08c3bdfSopenharmony_ciuint une(uint p, uint a) { return (123 != p) == (p != 123); } 14f08c3bdfSopenharmony_ci 15f08c3bdfSopenharmony_ciuint ubt(uint p, uint a) { return (123 > p) == (p < 123); } 16f08c3bdfSopenharmony_ciuint ube(uint p, uint a) { return (123 >= p) == (p <= 123); } 17f08c3bdfSopenharmony_ciuint uae(uint p, uint a) { return (123 <= p) == (p >= 123); } 18f08c3bdfSopenharmony_ciuint uat(uint p, uint a) { return (123 < p) == (p > 123); } 19f08c3bdfSopenharmony_ci 20f08c3bdfSopenharmony_ci/* 21f08c3bdfSopenharmony_ci * check-name: canonical-cmp 22f08c3bdfSopenharmony_ci * check-description: check that constants move rightside 23f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file 24f08c3bdfSopenharmony_ci * 25f08c3bdfSopenharmony_ci * check-output-ignore 26f08c3bdfSopenharmony_ci * check-output-excludes: \\$123, 27f08c3bdfSopenharmony_ci */ 28