Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/vxrm-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64d -O3" } */
3
4 #include "riscv_vector.h"
5
6 size_t f0 ()
7 {
8 return __RISCV_VXRM_RNU;
9 }
10
11 size_t f1 ()
12 {
13 return __RISCV_VXRM_RNE;
14 }
15
16 size_t f2 ()
17 {
18 return __RISCV_VXRM_RDN;
19 }
20
21 size_t f3 ()
22 {
23 return __RISCV_VXRM_ROD;
24 }
25
26 /* { dg-final { scan-assembler-times {li\s+[a-x0-9]+,\s*0} 1} } */
27 /* { dg-final { scan-assembler-times {li\s+[a-x0-9]+,\s*1} 1} } */
28 /* { dg-final { scan-assembler-times {li\s+[a-x0-9]+,\s*2} 1} } */
29 /* { dg-final { scan-assembler-times {li\s+[a-x0-9]+,\s*3} 1} } */