Debian Codegraph @

gcc/testsuite/gcc.target/riscv/pr116278-run-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-rtl-expand-details" } */
3
4 #include <stdint.h>
5
6 int16_t b[1];
7 int16_t *d = b;
8 int64_t c;
9
10 int main() {
11 b[0] = -40;
12 uint32_t t = (uint32_t)d[0];
13
14 c = (t < 0xFFFFFFF6u ? t : 0xFFFFFFF6u) + 9;
15
16 if (c != 4294967265)
17 __builtin_abort ();
18 }
19
20 /* { dg-final { scan-rtl-dump-times ".SAT_ADD " 2 "expand" } } */