| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O1 -march=rv64gcv_zfh -mabi=lp64d" } */ |
| 3 |
/* { dg-final { check-function-bodies "**" "" } } */ |
| 4 |
|
| 5 |
#include "riscv_vector.h" |
| 6 |
|
| 7 |
void bar (int8_t *data); |
| 8 |
|
| 9 |
/* |
| 10 |
** foo1: |
| 11 |
** addi\tsp,sp,-16 |
| 12 |
** sd\tra,8\(sp\) |
| 13 |
** csrr\tt0,vlenb |
| 14 |
** sub\tsp,sp,t0 |
| 15 |
** vs1r\.v\tv1,0\(sp\) |
| 16 |
** sub\tsp,sp,t0 |
| 17 |
** vs1r\.v\tv2,0\(sp\) |
| 18 |
** sub\tsp,sp,t0 |
| 19 |
** vs1r\.v\tv3,0\(sp\) |
| 20 |
** sub\tsp,sp,t0 |
| 21 |
** vs1r\.v\tv4,0\(sp\) |
| 22 |
** sub\tsp,sp,t0 |
| 23 |
** vs1r\.v\tv5,0\(sp\) |
| 24 |
** sub\tsp,sp,t0 |
| 25 |
** vs1r\.v\tv6,0\(sp\) |
| 26 |
** sub\tsp,sp,t0 |
| 27 |
** vs1r\.v\tv7,0\(sp\) |
| 28 |
** sub\tsp,sp,t0 |
| 29 |
** vs1r\.v\tv24,0\(sp\) |
| 30 |
** sub\tsp,sp,t0 |
| 31 |
** vs1r\.v\tv25,0\(sp\) |
| 32 |
** sub\tsp,sp,t0 |
| 33 |
** vs1r\.v\tv26,0\(sp\) |
| 34 |
** sub\tsp,sp,t0 |
| 35 |
** vs1r\.v\tv27,0\(sp\) |
| 36 |
** sub\tsp,sp,t0 |
| 37 |
** vs1r\.v\tv28,0\(sp\) |
| 38 |
** sub\tsp,sp,t0 |
| 39 |
** vs1r\.v\tv29,0\(sp\) |
| 40 |
** sub\tsp,sp,t0 |
| 41 |
** vs1r\.v\tv30,0\(sp\) |
| 42 |
** sub\tsp,sp,t0 |
| 43 |
** vs1r\.v\tv31,0\(sp\) |
| 44 |
** addi\tsp,sp,-1024 |
| 45 |
** mv\ta0,sp |
| 46 |
** call\tbar |
| 47 |
** addi\tsp,sp,1024 |
| 48 |
** csrr\tt0,vlenb |
| 49 |
** vl1re64\.v\tv31,0\(sp\) |
| 50 |
** add\tsp,sp,t0 |
| 51 |
** vl1re64\.v\tv30,0\(sp\) |
| 52 |
** add\tsp,sp,t0 |
| 53 |
** vl1re64\.v\tv29,0\(sp\) |
| 54 |
** add\tsp,sp,t0 |
| 55 |
** vl1re64\.v\tv28,0\(sp\) |
| 56 |
** add\tsp,sp,t0 |
| 57 |
** vl1re64\.v\tv27,0\(sp\) |
| 58 |
** add\tsp,sp,t0 |
| 59 |
** vl1re64\.v\tv26,0\(sp\) |
| 60 |
** add\tsp,sp,t0 |
| 61 |
** vl1re64\.v\tv25,0\(sp\) |
| 62 |
** add\tsp,sp,t0 |
| 63 |
** vl1re64\.v\tv24,0\(sp\) |
| 64 |
** add\tsp,sp,t0 |
| 65 |
** vl1re64\.v\tv7,0\(sp\) |
| 66 |
** add\tsp,sp,t0 |
| 67 |
** vl1re64\.v\tv6,0\(sp\) |
| 68 |
** add\tsp,sp,t0 |
| 69 |
** vl1re64\.v\tv5,0\(sp\) |
| 70 |
** add\tsp,sp,t0 |
| 71 |
** vl1re64\.v\tv4,0\(sp\) |
| 72 |
** add\tsp,sp,t0 |
| 73 |
** vl1re64\.v\tv3,0\(sp\) |
| 74 |
** add\tsp,sp,t0 |
| 75 |
** vl1re64\.v\tv2,0\(sp\) |
| 76 |
** add\tsp,sp,t0 |
| 77 |
** vl1re64\.v\tv1,0\(sp\) |
| 78 |
** add\tsp,sp,t0 |
| 79 |
** ld\tra,8\(sp\) |
| 80 |
** addi\tsp,sp,16 |
| 81 |
** jr\tra |
| 82 |
*/ |
| 83 |
void |
| 84 |
foo1 (vint8m1_t a) |
| 85 |
{ |
| 86 |
int8_t data[1024]; |
| 87 |
bar (data); |
| 88 |
} |