Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.c-torture/compile/pr55921.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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 } |