Debian Codegraph @

gcc/testsuite/gcc.target/riscv/pr114087-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target rv64 } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */
4 /* { dg-options "-march=rv64gc -mabi=lp64d" } */
5
6 #include <stdbool.h>
7 #include <stdint.h>
8
9 static uint32_t mask1 = 0x55555FFF;
10 static uint32_t val1 = 0x14501DEF;
11
12 bool pred1a(uint32_t x) {
13 return ((x & mask1) == val1);
14 }
15
16 /* { dg-final { scan-assembler {or\s*[a-x0-9]+,\s*[a-x0-9]+,\s*[a-x0-9]+} } } */