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