/* { dg-do compile } */ /* { dg-options "-msave-restore -march=rv32gc_zve64d -mabi=ilp32 -msave-restore -fno-schedule-insns -fno-schedule-insns2 -O3" } */ /* { dg-final { check-function-bodies "**" "" } } */ #include "riscv_vector.h" void fn2 (float a1, float a2, float a3, float a4, float a5, float a6, float a7, float a8); void fn3 (char*); /* ** stack_save_restore_2: ** call\tt0,__riscv_save_0 ** csrr\tt0,vlenb ** sub\tsp,sp,t0 ** vs1r.v\tv1,0\(sp\) ** ... ** csrr\tt0,vlenb ** slli\tt1,t0,2 ** sub\tt1,t1,t0 ** add\tsp,sp,t1 ** li\tt0,8192 ** addi\tt0,t0,-192 ** add\tsp,sp,t0 ** ... ** vl1re64.v\tv1,0\(sp\) ** add\tsp,sp,t0 ** tail\t__riscv_restore_0 */ int stack_save_restore_2 (float a1, float a2, float a3, float a4, float a5, float a6, float a7, float a8, vuint8m1_t data, uint8_t *base) { char d[8000]; float f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13; asm volatile ("nop" : "=f" (f1), "=f" (f2), "=f" (f3), "=f" (f4), "=f" (f5), "=f" (f6), "=f" (f7), "=f" (f8), "=f" (f9), "=f" (f10), "=f" (f11), "=f" (f12), "=f" (f13) : :); asm volatile ("nop" : : "f" (f1), "f" (f2), "f" (f3), "f" (f4), "f" (f5), "f" (f6), "f" (f7), "f" (f8), "f" (f9), "f" (f10), "f" (f11), "f" (f12), "f" (f13) :); vuint8m8_t v0, v8, v16, v24; asm volatile ("nop" : "=vr" (v0), "=vr" (v8), "=vr" (v16), "=vr" (v24) : :); asm volatile ("nop" : : "vr" (v0), "vr" (v8), "vr" (v16), "vr" (v24) :); *(vuint8m1_t *)base = data; fn2 (a1, a2, a3, a4, a5, a6, a7, a8); fn3(d); return 0; }