1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-options "-O2" } */
3 
4 /* { dg-final { scan-assembler-not {\mld} } } */
5 /* { dg-final { scan-assembler-not {\mlwz} } } */
6 /* { dg-final { scan-assembler-times {\mlbz} 2 } } */
7 
8 struct mmu_gather {
9         long end;
10         int fullmm : 1;
11 };
12 
__tlb_reset_range(struct mmu_gather * p1)13 void __tlb_reset_range(struct mmu_gather *p1)
14 {
15         if (p1->fullmm)
16                 p1->end = 0;
17 }
18 
tlb_gather_mmu(struct mmu_gather * p1)19 void tlb_gather_mmu(struct mmu_gather *p1)
20 {
21         p1->fullmm = 1;
22         __tlb_reset_range(p1);
23 }
24