]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/riscv/sum-of-two-s12-const-3.c
RISC-V: avoid LUI based const materialization ... [part of PR/106265]
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / riscv / sum-of-two-s12-const-3.c
CommitLineData
4bfc4585
VG
1/* Reduced version of c-c++-common/torture/builtin-convertvector-1.c. */
2/* This should NOT ICE */
3
4/* { dg-do compile } */
5
6typedef long b __attribute__((vector_size(256 * sizeof(long))));
7typedef double c __attribute__((vector_size(256 * sizeof(double))));
8int d;
9void e(b *f, c *g) { *g = __builtin_convertvector(*f, c); }
10void h() {
11 struct {
12 b i;
13 } j;
14 union {
15 c i;
16 double a[6];
17 } k;
18 e(&j.i, &k.i);
19 if (k.a[d])
20 for (;;)
21 ;
22}