1bfb8b0676795fcfdd90e4ecba0042c6ed66e18e
1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright 2015-2016 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 #if (defined __aarch64__)
22 #if (defined __aarch64__)
28 asm ("ld1 { v1.8b }, [%[buf]]\n"
29 "ld1 { v2.8b, v3.8b }, [%[buf]]\n"
30 "ld1 { v3.8b, v4.8b, v5.8b }, [%[buf]]\n"
39 float32x2_t b1_
= vdup_n_f32(123.0f
);
41 float64x1_t b2_
= vdup_n_f64(456.0f
);
44 asm ("ins %0.s[0], %w1\n"
49 asm ("ins %0.d[1], %x1\n"
56 adv_simd_mod_imm (void)
58 float32x2_t a1
= {2.0, 4.0};
60 asm ("bic %0.2s, #1\n"
61 "bic %0.2s, #1, lsl #8\n"
68 adv_simd_scalar_index (void)
70 float64x2_t b_
= {0.0, 0.0};
74 asm ("fmla %d0,%d1,%2.d[1]"
83 asm ("smlal v13.2d, v8.2s, v0.2s");
87 adv_simd_vect_shift (void)
89 asm ("fcvtzs s0, s0, #1");
93 typedef void (*testcase_ftype
) (void);
95 /* Functions testing instruction decodings. GDB will read n_testcases
96 to know how many functions to test. */
98 static testcase_ftype testcases
[] =
100 #if (defined __aarch64__)
104 adv_simd_scalar_index
,
110 static int n_testcases
= (sizeof (testcases
) / sizeof (testcase_ftype
));
117 for (i
= 0; i
< n_testcases
; i
++)
This page took 0.034357 seconds and 3 git commands to generate.