Debian Codegraph @

gcc/testsuite/gcc.target/riscv/pr116715.c

raw
1 /* { dg-do run } */
2 /* { dg-options "-march=rv64gc_zbs -mabi=lp64d" { target { riscv64*-*-* } } } */
3 /* { dg-options "-march=rv32gc_zbs -mabi=ilp32" { target { riscv32*-*-* } } } */
4 #include <stdint-gcc.h>
5 int32_t a, b;
6 int32_t d;
7 int64_t f = 695372830942;
8 int main() {
9 d = 0;
10 for (; d < 1; d = 1)
11 --f;
12 d |= b = f;
13 int64_t h = d;
14 a = h >> 40;
15 if (a != -1)
16 __builtin_abort ();
17 __builtin_exit (0);
18 }