Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/fixed-vlmax-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv32gcv -mabi=ilp32 -mpreferred-stack-boundary=3 -fno-schedule-insns -fno-schedule-insns2 -O3 -mrvv-vector-bits=zvl" } */
3
4 #include "riscv_vector.h"
5
6 void f (char*);
7
8 void stack_check_alloca_1 (vuint8m1_t data, uint8_t *base, int y, ...)
9 {
10 vuint8m8_t v0, v8, v16, v24;
11 asm volatile ("nop"
12 : "=vr" (v0), "=vr" (v8), "=vr" (v16), "=vr" (v24)
13 :
14 :);
15 asm volatile ("nop"
16 :
17 : "vr" (v0), "vr" (v8), "vr" (v16), "vr" (v24)
18 :);
19 *(vuint8m1_t *)base = data;
20 char* pStr = (char*)__builtin_alloca(y);
21 f(pStr);
22 }
23
24 /* Compiler should not cause an ICE in this testcase. */