Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/pr113485.c

raw
1 /* { dg-options "-O" } */
2
3 #include <arm_neon.h>
4
5 void test()
6 {
7 while (1)
8 {
9 static const uint16_t jsimd_rgb_ycc_neon_consts[] = {19595, 0, 0, 0, 0, 0, 0, 0};
10 uint16x8_t consts = vld1q_u16(jsimd_rgb_ycc_neon_consts);
11
12 uint8_t tmp_buf[0];
13 uint8x8x3_t input_pixels = vld3_u8(tmp_buf);
14 uint16x8_t r = vmovl_u8(input_pixels.val[1]);
15 uint32x4_t y_l = vmull_laneq_u16(vget_low_u16(r), consts, 0);
16
17 uint32x4_t s = vdupq_n_u32(1);
18 uint16x4_t a = vrshrn_n_u32(s, 16);
19 uint16x4_t y = vrshrn_n_u32(y_l, 16);
20 uint16x8_t ay = vcombine_u16(a, y);
21
22 unsigned char ***out_buf;
23 vst1_u8(out_buf[1][0], vmovn_u16(ay));
24 }
25 }