1 /* Check load on condition for bool. */ 2 3 /* { dg-do compile { target { s390*-*-* } } } */ 4 /* { dg-options "-O2 -march=z13" } */ 5 6 /* { dg-final { scan-assembler "lochinh\t%r.?,1" } } */ 7 #include <stdbool.h> 8 foo(int * a,unsigned int n)9int foo (int *a, unsigned int n) 10 { 11 int min = 999999; 12 bool bla = false; 13 for (int i = 0; i < n; i++) 14 { 15 if (a[i] < min) 16 { 17 bla = true; 18 } 19 } 20 21 if (bla) 22 min += 1; 23 return min; 24 } 25