Specify architecture for SPARC gas tests
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Mon Feb 12 12:54:00 GMT 2018
Hi jose,
> I just checked and you can set OBJDUMPFLAGS before running
> run_dump_test. What about doing something like this in sparc.exp:
>
> proc set_tests_arch {arch} {
> global OBJDUMPFLAGS
>
> if [istarget "sparc-solaris*"] {
> set OBJDUMPFLAGS "-msparc:$arch"
> }
> }
>
> [...]
>
> set_tests_mach v9m8
> run_dump_test "on"
> run_list_test "on-diag" "-64"
> ; ... other M8 tests
>
> set_tests_mach v9m
> run_dump_test "xcrypto"
> ; ... other M7 tests
>
> wdyt?
works for me. The following patch passed testing on both
sparc-sun-solaris2.11 and sparcv9-sun-solaris2.11.
At the occasion, I noticed that the ldtxa hadn't been run at all
before. It's now included as well.
Ok for mainline?
Now, only two (quite weird) failures remain:
FAIL: sparc LDM/STM/LDMA/STMA
regexp_diff match failure
regexp "^ 1c: c7 88 64 66 ldmuh \[ %g1 \+ 0x66 \], %g3$"
line " 1c: c7 88 64 66 ldmuh [ 0x66 + %g1 ], %g3"
regexp_diff match failure
regexp "^ 20: c7 88 64 66 ldmuh \[ %g1 \+ 0x66 \], %g3$"
line " 20: c7 88 64 66 ldmuh [ 0x66 + %g1 ], %g3"
regexp_diff match failure
regexp "^ 30: c7 88 68 66 ldmsw \[ %g1 \+ 0x66 \], %g3$"
line " 30: c7 88 68 66 ldmsw [ 0x66 + %g1 ], %g3"
regexp_diff match failure
regexp "^ 34: c7 88 68 66 ldmsw \[ %g1 \+ 0x66 \], %g3$"
line " 34: c7 88 68 66 ldmsw [ 0x66 + %g1 ], %g3"
regexp_diff match failure
regexp "^ 44: c7 88 6c 66 ldmuw \[ %g1 \+ 0x66 \], %g3$"
line " 44: c7 88 6c 66 ldmuw [ 0x66 + %g1 ], %g3"
regexp_diff match failure
regexp "^ 48: c7 88 6c 66 ldmuw \[ %g1 \+ 0x66 \], %g3$"
line " 48: c7 88 6c 66 ldmuw [ 0x66 + %g1 ], %g3"
FAIL: sparc LDMF/STMF/LDMFA/STMFA
regexp_diff match failure
regexp "^ 54: c3 a8 7c 66 stmfd %f32, \[ %g1 \+ 0x66 \]$"
line " 54: c3 a8 7c 66 stmfd %f32, [ 0x66 + %g1 ]"
regexp_diff match failure
regexp "^ 58: c3 a8 7c 66 stmfd %f32, \[ %g1 \+ 0x66 \]$"
line " 58: c3 a8 7c 66 stmfd %f32, [ 0x66 + %g1 ]"
I can see no pattern here: in the first case, ldmsh, ldmx, and st* are
correct, in the second stmfs is.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
2018-02-12 Jose E. Marchesi <jose.marchesi@oracle.com>
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* testsuite/gas/sparc/sparc.exp (set_tests_arch): New proc.
Prefix v9c, v9d, v9v, v9m, v9m8 tests with corresponding
set_tests_arch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gas-sparc-objdump-arch.patch
Type: text/x-patch
Size: 3611 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180212/afe112b2/attachment.bin>
More information about the Binutils
mailing list