1f08c3bdfSopenharmony_ciint foo(int a) 2f08c3bdfSopenharmony_ci{ 3f08c3bdfSopenharmony_ci return ((a == 0) + 1) != ((a == 0) + 1); 4f08c3bdfSopenharmony_ci} 5f08c3bdfSopenharmony_ci 6f08c3bdfSopenharmony_ci/* 7f08c3bdfSopenharmony_ci * check-name: kill-cse 8f08c3bdfSopenharmony_ci * check-description: 9f08c3bdfSopenharmony_ci * Verify that instructions removed at CSE are 10f08c3bdfSopenharmony_ci * properly adjust the usage of their operands. 11f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file 12f08c3bdfSopenharmony_ci * 13f08c3bdfSopenharmony_ci * check-output-start 14f08c3bdfSopenharmony_cifoo: 15f08c3bdfSopenharmony_ci.L0: 16f08c3bdfSopenharmony_ci <entry-point> 17f08c3bdfSopenharmony_ci ret.32 $0 18f08c3bdfSopenharmony_ci 19f08c3bdfSopenharmony_ci 20f08c3bdfSopenharmony_ci * check-output-end 21f08c3bdfSopenharmony_ci */ 22