aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/mips/include/test_inputs_32.h
blob: a3b7e5464a01637b1e756eac90509fcafbd06bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/*
 *  Header file for pattern and random test inputs
 *
 *  Copyright (C) 2019  Wave Computing, Inc.
 *  Copyright (C) 2019  Aleksandar Markovic <amarkovic@wavecomp.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 */

#ifndef TEST_INPUTS_32_H
#define TEST_INPUTS_32_H

#include <stdint.h>


#define PATTERN_INPUTS_32_COUNT          64
#define PATTERN_INPUTS_32_SHORT_COUNT     8

static const uint32_t b32_pattern[PATTERN_INPUTS_32_COUNT] = {
    0xFFFFFFFF,                                          /*   0 */
    0x00000000,
    0xAAAAAAAA,
    0x55555555,
    0xCCCCCCCC,
    0x33333333,
    0xE38E38E3,
    0x1C71C71C,
    0xF0F0F0F0,                                          /*   8 */
    0x0F0F0F0F,
    0xF83E0F83,
    0x07C1F07C,
    0xFC0FC0FC,
    0x03F03F03,
    0xFE03F80F,
    0x01FC07F0,
    0xFF00FF00,                                          /*  16 */
    0x00FF00FF,
    0xFF803FE0,
    0x007FC01F,
    0xFFC00FFC,
    0x003FF003,
    0xFFE003FF,
    0x001FFC00,
    0xFFF000FF,                                          /*  24 */
    0x000FFF00,
    0xFFF8003F,
    0x0007FFC0,
    0xFFFC000F,
    0x0003FFF0,
    0xFFFE0003,
    0x0001FFFC,
    0xFFFF0000,                                          /*  32 */
    0x0000FFFF,
    0xFFFF8000,
    0x00007FFF,
    0xFFFFC000,
    0x00003FFF,
    0xFFFFE000,
    0x00001FFF,
    0xFFFFF000,                                          /*  40 */
    0x00000FFF,
    0xFFFFF800,
    0x000007FF,
    0xFFFFFC00,
    0x000003FF,
    0xFFFFFE00,
    0x000001FF,
    0xFFFFFF00,                                          /*  48 */
    0x000000FF,
    0xFFFFFF80,
    0x0000007F,
    0xFFFFFFC0,
    0x0000003F,
    0xFFFFFFE0,
    0x0000001F,
    0xFFFFFFF0,                                          /*  56 */
    0x0000000F,
    0xFFFFFFF8,
    0x00000007,
    0xFFFFFFFC,
    0x00000003,
    0xFFFFFFFE,
    0x00000001,
};


#define RANDOM_INPUTS_32_COUNT           16
#define RANDOM_INPUTS_32_SHORT_COUNT      4

static const uint32_t b32_random[RANDOM_INPUTS_32_COUNT] = {
    0x886AE6CC,                                          /*   0 */
    0xFBBE0063,
    0xAC5AAEAA,
    0x704F164D,
    0xB9926B7C,
    0xD027BE89,
    0xB83B5806,
    0xFC8F23F0,
    0x201E09CD,                                          /*   8 */
    0xA57CD913,
    0xA2E8F6F5,
    0xA89CF2F1,
    0xE61438E9,
    0x944A35FD,
    0x46304263,
    0x8B5AA7A2,
};


#endif