1f08c3bdfSopenharmony_ciint foo(int p) 2f08c3bdfSopenharmony_ci{ 3f08c3bdfSopenharmony_ci if (p == 3) 4f08c3bdfSopenharmony_ci __builtin_unreachable(); 5f08c3bdfSopenharmony_ci return p; 6f08c3bdfSopenharmony_ci} 7f08c3bdfSopenharmony_ci 8f08c3bdfSopenharmony_ci/* 9f08c3bdfSopenharmony_ci * check-name: builtin_unreachable0 10f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file 11f08c3bdfSopenharmony_ci * 12f08c3bdfSopenharmony_ci * check-output-start 13f08c3bdfSopenharmony_cifoo: 14f08c3bdfSopenharmony_ci.L0: 15f08c3bdfSopenharmony_ci <entry-point> 16f08c3bdfSopenharmony_ci seteq.32 %r2 <- %arg1, $3 17f08c3bdfSopenharmony_ci cbr %r2, .L1, .L2 18f08c3bdfSopenharmony_ci 19f08c3bdfSopenharmony_ci.L1: 20f08c3bdfSopenharmony_ci unreachable 21f08c3bdfSopenharmony_ci 22f08c3bdfSopenharmony_ci.L2: 23f08c3bdfSopenharmony_ci ret.32 %arg1 24f08c3bdfSopenharmony_ci 25f08c3bdfSopenharmony_ci 26f08c3bdfSopenharmony_ci * check-output-end 27f08c3bdfSopenharmony_ci */ 28