Debian Codegraph @

gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb-update.c

raw
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */
3 /* { dg-options "-march=rv64gc_xtheadbb_xtheadmemidx_xtheadfmemidx -mabi=lp64d" { target { rv64 } } } */
4 /* { dg-options "-march=rv32imafc_xtheadbb_xtheadmemidx_xtheadfmemidx -mabi=ilp32f" { target { rv32 } } } */
5
6 #include "xtheadmemidx-helpers.h"
7
8 LRU_REG_IMM_UPD(float, 0)
9 #if __riscv_xlen == 64
10 LRU_REG_IMM_UPD(double, 2)
11 #endif
12
13 SRU_REG_IMM_UPD(float, 1)
14 #if __riscv_xlen == 64
15 SRU_REG_IMM_UPD(double, 3)
16 #endif
17
18 /* If the shifted value is used later, we cannot eliminate it. */
19 /* { dg-final { scan-assembler-times {\mslli\M} 1 { target { rv32 } } } } */
20 /* { dg-final { scan-assembler-times {\mslli\M} 3 { target { rv64 } } } } */