]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.arch/i386-mpx-sigsegv.c
1 /* Copyright (C) 2015-2024 Free Software Foundation, Inc.
3 Contributed by Intel Corp. <walfred.tedeschi@intel.com>
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/>. */
39 upper (int * p
, int * a
, int * b
, int * c
, int * d
, int len
)
50 lower (int * p
, int * a
, int * b
, int * c
, int * d
, int len
)
69 int *x
, *a
, *b
, *c
, *d
;
71 x
= calloc (OUR_SIZE
, sizeof (int));
72 a
= calloc (OUR_SIZE
, sizeof (int));
73 b
= calloc (OUR_SIZE
, sizeof (int));
74 c
= calloc (OUR_SIZE
, sizeof (int));
75 d
= calloc (OUR_SIZE
, sizeof (int));
77 upper (x
, a
, b
, c
, d
, OUR_SIZE
+ 2);
78 upper (sx
, sa
, sb
, sc
, sd
, OUR_SIZE
+ 2);
79 upper (gx
, ga
, gb
, gc
, gd
, OUR_SIZE
+ 2);
80 lower (x
, a
, b
, c
, d
, 1);
81 lower (sx
, sa
, sb
, sc
, sd
, 1);
83 lower (gx
, ga
, gb
, gc
, gd
, 1);