aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/riscv/zbb-strlen-disabled-2.c
blob: a481068aa0c7714976253fdf0c7a4986e36a19b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-march=rv32gc_zbb" { target { rv32 } } } */
/* { dg-options "-march=rv64gc_zbb" { target { rv64 } } } */
/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" "-Oz" } } */

typedef long unsigned int size_t;

size_t
my_str_len (const char *s)
{
  s = __builtin_assume_aligned (s, 4096);
  return __builtin_strlen (s);
}

/* { dg-final { scan-assembler-not "orc.b\t" } } */