Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr71310.c
blob6869a5009437d0c77115f2977fb0a68819722849
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-options "-O2" } */
4 /* { dg-final { scan-assembler-not {\mld} } } */
5 /* { dg-final { scan-assembler-not {\mlwz} } } */
6 /* { dg-final { scan-assembler-times {\mlbz} 2 } } */
8 struct mmu_gather {
9 long end;
10 int fullmm : 1;
13 void __tlb_reset_range(struct mmu_gather *p1)
15 if (p1->fullmm)
16 p1->end = 0;
19 void tlb_gather_mmu(struct mmu_gather *p1)
21 p1->fullmm = 1;
22 __tlb_reset_range(p1);