1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright 2015-2019 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/>. */
25 asm ("ld1 { v1.8b }, [%[buf]]\n"
26 "ld1 { v2.8b, v3.8b }, [%[buf]]\n"
27 "ld1 { v3.8b, v4.8b, v5.8b }, [%[buf]]\n"
36 float32x2_t b1_
= vdup_n_f32(123.0f
);
38 float64x1_t b2_
= vdup_n_f64(456.0f
);
41 asm ("ins %0.s[0], %w1\n"
46 asm ("ins %0.d[1], %x1\n"
53 adv_simd_mod_imm (void)
55 float32x2_t a1
= {2.0, 4.0};
57 asm ("bic %0.2s, #1\n"
58 "bic %0.2s, #1, lsl #8\n"
65 adv_simd_scalar_index (void)
67 float64x2_t b_
= {0.0, 0.0};
71 asm ("fmla %d0,%d1,%2.d[1]"
80 asm ("smlal v13.2d, v8.2s, v0.2s");
84 adv_simd_vect_shift (void)
86 asm ("fcvtzs s0, s0, #1");
89 /* Initialize arch-specific bits. */
91 static void initialize (void)
93 /* AArch64 doesn't currently use this function. */
96 /* Functions testing instruction decodings. GDB will test all of these. */
97 static testcase_ftype testcases
[] =
102 adv_simd_scalar_index
,