Debian Codegraph @

gcc/testsuite/gcc.target/s390/arch13/fp-signedint-convert-1.c

raw
1 /* { dg-do compile } */
2
3 typedef int __attribute__((vector_size(16))) v4si;
4 typedef float __attribute__((vector_size(16))) v4sf;
5
6 v4si
7 toint (v4sf a)
8 {
9 v4si out = (v4si){ (int)a[0], (int)a[1], (int)a[2], (int)a[3] };
10 return out;
11 }
12
13 /* { dg-final { scan-assembler-times "vcfeb\t%v24,%v24,0,5" 1 } } */
14
15 v4sf
16 tofloat (v4si a)
17 {
18 v4sf out = (v4sf){ (float)a[0], (float)a[1], (float)a[2], (float)a[3] };
19 return out;
20 }
21
22 /* { dg-final { scan-assembler-times "vcefb\t%v24,%v24,0,0" 1 } } */