(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr44136.c
       1  /* PR debug/44136 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-w -O2 -g" } */
       4  /* { dg-options "-w -Wno-psabi -O2 -g -mno-sse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
       5  
       6  #define vector __attribute((vector_size(16)))
       7  vector float a;
       8  
       9  float
      10  foo (float b)
      11  {
      12    vector float c = { 0, 0, 0, 0 };
      13    vector float d = { 0, 0, 0, 0 };
      14    d += c;
      15    return ((float *)&c)[2];
      16  }
      17  
      18  float
      19  bar (vector float a, int b, vector float c)
      20  {
      21    vector float e = c * a;
      22    a = (vector float) { 0, 0, 0, 0 };
      23    c = (vector float) { 0, 0, 0, 0 };
      24    float d = ((float *)&a)[0];
      25    float f = ((float *)&c)[0];
      26    return d * f;
      27  }