OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [i386/] [i386.exp] - Blame information for rev 156

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
#
2
# i386 tests
3
#
4
proc gas_64_check { } {
5
    global NM
6
    global NMFLAGS
7
 
8
    set status [gas_host_run "$NM $NMFLAGS --help" ""]
9
    return [regexp "targets:.*x86-64" [lindex $status 1]];
10
}
11
 
12
proc gas_32_check { } {
13
    global NM
14
    global NMFLAGS
15
 
16
    set status [gas_host_run "$NM $NMFLAGS --help" ""]
17
    return [regexp "targets:.*i386" [lindex $status 1]];
18
}
19
 
20
if [expr ([istarget "i*86-*-*"] ||  [istarget "x86_64-*-*"]) && [gas_32_check]]  then {
21
 
22
    global ASFLAGS
23
    set old_ASFLAGS "$ASFLAGS"
24
    set ASFLAGS "$ASFLAGS --32"
25
 
26
    run_list_test "float" "-al -mmnemonic=att"
27
    run_list_test "general" "-al --listing-lhs-width=2 -mold-gcc"
28
    run_list_test "inval" "-al"
29
    run_list_test "segment" "-al"
30
    run_list_test "inval-seg" "-al"
31
    run_list_test "modrm" "-al --listing-lhs-width=2"
32
    run_dump_test "naked"
33
    run_dump_test "opcode"
34
    run_dump_test "opcode-intel"
35
    run_dump_test "opcode-suffix"
36
    run_dump_test "intel"
37
    run_dump_test "intel16"
38
    run_list_test "intelbad" ""
39
    run_dump_test "intelok"
40
    run_dump_test "prefix"
41
    run_dump_test "amd"
42
    run_dump_test "katmai"
43
    run_dump_test "jump"
44
    run_dump_test "ssemmx2"
45
    run_dump_test "sse2"
46
    run_dump_test "sub"
47
    run_dump_test "prescott"
48
    run_dump_test "sib"
49
    run_dump_test "sib-intel"
50
    run_dump_test "vmx"
51
    run_dump_test "smx"
52
    run_dump_test "suffix"
53
    run_dump_test "immed32"
54
    run_dump_test "equ"
55
    run_dump_test "divide"
56
    run_dump_test "padlock"
57
    run_dump_test "crx"
58
    run_list_test "cr-err" ""
59
    run_dump_test "svme"
60
    run_dump_test "amdfam10"
61
    run_dump_test "merom"
62
    run_dump_test "rep"
63
    run_dump_test "rep-suffix"
64
    run_dump_test "fp"
65
    run_dump_test "nops"
66
    run_dump_test "nops16-1"
67
    run_dump_test "nops-1"
68
    run_dump_test "nops-1-i386"
69
    run_dump_test "nops-1-i386-i686"
70
    run_dump_test "nops-1-i686"
71
    run_dump_test "nops-1-k8"
72
    run_dump_test "nops-1-merom"
73
    run_dump_test "nops-2"
74
    run_dump_test "nops-2-i386"
75
    run_dump_test "nops-2-merom"
76
    run_dump_test "nops-3"
77
    run_dump_test "nops-3-i386"
78
    run_dump_test "nops-3-i686"
79
    run_dump_test "nops-4"
80
    run_dump_test "nops-4-i386"
81
    run_dump_test "nops-4-i686"
82
    run_dump_test "addr16"
83
    run_dump_test "addr32"
84
    run_dump_test "sse4_1"
85
    run_dump_test "sse4_1-intel"
86
    run_dump_test "sse4_2"
87
    run_dump_test "sse4_2-intel"
88
    run_dump_test "crc32"
89
    run_dump_test "crc32-intel"
90
    run_list_test "inval-crc32" "-al"
91
    run_dump_test "simd"
92
    run_dump_test "simd-intel"
93
    run_dump_test "simd-suffix"
94
    run_dump_test "mem"
95
    run_dump_test "mem-intel"
96
    run_dump_test "reg"
97
    run_dump_test "reg-intel"
98
    run_dump_test "i386"
99
    run_dump_test "compat"
100
    run_dump_test "compat-intel"
101
    run_dump_test "arch-1"
102
    run_dump_test "arch-2"
103
    run_dump_test "arch-3"
104
    run_dump_test "arch-4"
105
    run_dump_test "arch-5"
106
    run_dump_test "arch-6"
107
    run_dump_test "arch-7"
108
    run_dump_test "arch-8"
109
    run_dump_test "arch-9"
110
    run_dump_test "arch-10"
111
    run_list_test "arch-10-1" "-march=generic32 -I${srcdir}/$subdir -al"
112
    run_list_test "arch-10-2" "-march=i686 -I${srcdir}/$subdir -al"
113
    run_list_test "arch-10-3" "-march=i686+sse4.2 -I${srcdir}/$subdir -al"
114
    run_list_test "arch-10-4" "-march=i686+sse4+vmx+smx -I${srcdir}/$subdir -al"
115
    run_dump_test "arch-11"
116
    run_dump_test "arch-12"
117
    run_dump_test "xsave"
118
    run_dump_test "xsave-intel"
119
    run_dump_test "aes"
120
    run_dump_test "aes-intel"
121
    run_dump_test "clmul"
122
    run_dump_test "clmul-intel"
123
    run_dump_test "avx"
124
    run_dump_test "avx-intel"
125
    run_dump_test "sse2avx"
126
    run_list_test "inval-avx" "-al"
127
    run_dump_test "sse-check"
128
    run_dump_test "sse-check-warn"
129
    run_list_test "sse-check-error" "-msse-check=error -I${srcdir}/$subdir -al"
130
    run_dump_test "sse-noavx"
131
    run_dump_test "movbe"
132
    run_dump_test "movbe-intel"
133
    run_list_test "inval-movbe" "-al"
134
    run_dump_test "ept"
135
    run_dump_test "ept-intel"
136
    run_list_test "inval-ept" "-al"
137
 
138
    # These tests require support for 8 and 16 bit relocs,
139
    # so we only run them for ELF and COFF targets.
140
    if {[is_elf_format] || [istarget "*-*-coff*"]} then {
141
        run_dump_test "reloc"
142
        run_dump_test "jump16"
143
        run_list_test "white" "-al --listing-lhs-width=3"
144
 
145
        # These tests should in theory work for PE targets as well,
146
        # but the relocs we currently produce are slightly different
147
        # from those produced for ELF/COFF based toolchains.
148
        # So for now we ignore PE targets.
149
        run_dump_test "pcrel"
150
        run_dump_test "absrel"
151
    }
152
 
153
    # ELF specific tests
154
    if [is_elf_format] then {
155
        # PIC is only supported on ELF targets.
156
        run_dump_test "intelpic"
157
 
158
        run_dump_test "relax"
159
        run_dump_test "gotpc"
160
        run_dump_test "tlsd"
161
        run_dump_test "tlspic"
162
        run_dump_test "tlsnopic"
163
        run_dump_test "bss"
164
        run_dump_test "reloc32"
165
        run_list_test "reloc32" "--defsym _bad_=1"
166
        run_dump_test "mixed-mode-reloc32"
167
        run_dump_test "att-regs"
168
        run_dump_test "intel-regs"
169
        run_list_test "inval-equ-1" "-al"
170
        run_list_test "inval-equ-2" "-al"
171
    }
172
 
173
    # This is a PE specific test.
174
    if { [istarget "*-*-cygwin*"] || [istarget "*-*-pe"]
175
         || [istarget "*-*-mingw*"]
176
    } then {
177
        run_dump_test "secrel"
178
    }
179
 
180
    set ASFLAGS "$old_ASFLAGS"
181
}
182
 
183
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] then {
184
 
185
    global ASFLAGS
186
    set old_ASFLAGS "$ASFLAGS"
187
    set ASFLAGS "$ASFLAGS --64"
188
 
189
    run_dump_test "x86_64"
190
    run_dump_test "x86-64-addr32"
191
    run_dump_test "x86-64-addr32-intel"
192
    run_dump_test "x86-64-opcode"
193
    run_dump_test "x86-64-pcrel"
194
    run_dump_test "x86-64-rip"
195
    run_dump_test "x86-64-rip-intel"
196
    run_dump_test "x86-64-stack"
197
    run_dump_test "x86-64-stack-intel"
198
    run_dump_test "x86-64-stack-suffix"
199
    run_list_test "x86-64-inval" "-al"
200
    run_list_test "x86-64-segment" "-al"
201
    run_list_test "x86-64-inval-seg" "-al"
202
    run_dump_test "x86-64-branch"
203
    run_dump_test "svme64"
204
    run_dump_test "x86-64-amdfam10"
205
    run_dump_test "x86-64-vmx"
206
    run_dump_test "immed64"
207
    run_dump_test "x86-64-prescott"
208
    run_dump_test "x86-64-crx"
209
    run_dump_test "x86-64-crx-suffix"
210
    run_dump_test "x86-64-drx"
211
    run_dump_test "x86-64-drx-suffix"
212
    run_dump_test "x86-64-merom"
213
    run_dump_test "x86-64-rep"
214
    run_dump_test "x86-64-rep-suffix"
215
    run_dump_test "x86-64-cbw"
216
    run_dump_test "x86-64-cbw-intel"
217
    run_dump_test "x86-64-io"
218
    run_dump_test "x86-64-io-intel"
219
    run_dump_test "x86-64-io-suffix"
220
    run_dump_test "x86-64-gidt"
221
    run_dump_test "x86-64-nops"
222
    run_dump_test "x86-64-nops-1"
223
    run_dump_test "x86-64-nops-1-k8"
224
    run_dump_test "x86-64-nops-1-nocona"
225
    run_dump_test "x86-64-nops-1-merom"
226
    run_dump_test "x86-64-nops-2"
227
    run_dump_test "x86-64-nops-3"
228
    run_dump_test "x86-64-nops-4"
229
    run_dump_test "x86-64-nops-4-core2"
230
    run_dump_test "x86-64-nops-4-k8"
231
    run_dump_test "x86-64-sse4_1"
232
    run_dump_test "x86-64-sse4_1-intel"
233
    run_dump_test "x86-64-sse4_2"
234
    run_dump_test "x86-64-sse4_2-intel"
235
    run_dump_test "x86-64-crc32"
236
    run_dump_test "x86-64-crc32-intel"
237
    run_list_test "x86-64-inval-crc32" "-al"
238
    run_dump_test "x86-64-simd"
239
    run_dump_test "x86-64-simd-intel"
240
    run_dump_test "x86-64-simd-suffix"
241
    run_dump_test "x86-64-sse5"
242
    run_dump_test "x86-64-mem"
243
    run_dump_test "x86-64-mem-intel"
244
    run_dump_test "x86-64-reg"
245
    run_dump_test "x86-64-reg-intel"
246
    run_dump_test "x86-64-sib"
247
    run_dump_test "x86-64-sib-intel"
248
    run_dump_test "x86-64-opcode-inval"
249
    run_dump_test "x86-64-opcode-inval-intel"
250
    run_dump_test "rexw"
251
    run_dump_test "x86-64-arch-1"
252
    run_dump_test "x86-64-arch-2"
253
    run_dump_test "x86-64-xsave"
254
    run_dump_test "x86-64-xsave-intel"
255
    run_dump_test "x86-64-aes"
256
    run_dump_test "x86-64-aes-intel"
257
    run_dump_test "x86-64-clmul"
258
    run_dump_test "x86-64-clmul-intel"
259
    run_dump_test "x86-64-avx"
260
    run_dump_test "x86-64-avx-intel"
261
    run_dump_test "x86-64-sse2avx"
262
    run_list_test "x86-64-inval-avx" "-al"
263
    run_dump_test "x86-64-sse-check"
264
    run_dump_test "x86-64-sse-check-warn"
265
    run_list_test "x86-64-sse-check-error" "-msse-check=error -I${srcdir}/$subdir -al"
266
    run_dump_test "x86-64-sse-noavx"
267
    run_dump_test "x86-64-movbe"
268
    run_dump_test "x86-64-movbe-intel"
269
    run_list_test "x86-64-inval-movbe" "-al"
270
    run_dump_test "x86-64-ept"
271
    run_dump_test "x86-64-ept-intel"
272
    run_list_test "x86-64-inval-ept" "-al"
273
 
274
    if { ![istarget "*-*-aix*"]
275
      && ![istarget "*-*-beos*"]
276
      && ![istarget "*-*-*bsd*"]
277
      && ![istarget "*-*-chaos*"]
278
      && ![istarget "*-*-kaos*"]
279
      && ![istarget "*-*-lynx*"]
280
      && ![istarget "*-*-moss*"]
281
      && ![istarget "*-*-nto-qnx*"]
282
      && ![istarget "*-*-rtems*"]
283
      && ![istarget "*-*-sco*"]
284
      && ![istarget "*-*-solaris*"]
285
      && ![istarget "*-*-sysv*"] } then {
286
        run_dump_test "rex"
287
    }
288
 
289
    # For ELF targets verify that @unwind works.
290
    if { ([istarget "*-*-elf*"] || [istarget "*-*-linux*"]
291
          || [istarget "*-*-solaris2.*"])
292
         && ![istarget *-*-linux*aout*]
293
         && ![istarget *-*-linux*oldld*] } then {
294
        run_dump_test "x86-64-unwind"
295
    }
296
 
297
    # ELF specific tests
298
    if [is_elf_format] then {
299
        run_dump_test "reloc64"
300
        run_list_test "reloc64" "--defsym _bad_=1"
301
        run_dump_test "mixed-mode-reloc64"
302
    }
303
 
304
    set ASFLAGS "$old_ASFLAGS"
305
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.