Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/lane-bound-3.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 /* PR target/117665 */
5 /* __builtin_aarch64_im_lane_boundsi was causing an abnormal
6 edge to the setjmp but then the builtin was folded into a nop
7 and that edge was never removed but the edge was not needed in
8 the first place. */
9
10 #include <arm_neon.h>
11
12 __attribute__((always_inline))
13 static inline
14 void h(uint64x2_t c, int __b) {
15 /* Use vgetq_lane_u64 to get a
16 __builtin_aarch64_im_lane_boundsi */
17 vgetq_lane_u64(c, __b);
18
19 __builtin_unreachable();
20 }
21
22 int _setjmp();
23 void hh(uint64x2_t c) {
24 int __b = 0;
25 if (_setjmp())
26 h(c, 0);
27 }