modernc.org/cc@v1.0.1/testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/compile/pr55921.c (about)

     1  /* PR tree-optimization/55921 */
     2  
     3  typedef union
     4  {
     5    _Complex float cf;
     6    long long ll;
     7  } ucf;
     8  
     9  void
    10  foo (ucf *in, ucf *out, _Complex float r)
    11  {
    12    int i;
    13    ucf ucf1;
    14    _Complex float cf;
    15  
    16    ucf1.ll = in[i].ll;
    17    __asm ("" : "=r" (cf) : "r" (ucf1.ll));
    18    cf *= r;
    19    __asm ("" : "=r" (ucf1.ll) : "r" (cf));
    20    out[i].ll = ucf1.ll;
    21  }