Add missing test cases.
* gas/microblaze/endian.exp: New file - endian testcase for microblaze / microblazeel. * gas/microblaze/endian.s: Likewise. * gas/microblaze/endian_be.d: Likewise. * gas/microblaze/endian_le.d: Likewise. * gas/microblaze/endian_le_elf.d: Likewise.
This commit is contained in:
parent
45270a439c
commit
477a32403b
12
gas/testsuite/gas/microblaze/endian.exp
Normal file
12
gas/testsuite/gas/microblaze/endian.exp
Normal file
@ -0,0 +1,12 @@
|
||||
# MicroBlaze test for special register.
|
||||
|
||||
if [istarget microblaze-*-*] {
|
||||
run_dump_test "endian_be"
|
||||
if [istarget microblaze-*-elf] {
|
||||
run_dump_test "endian_le_elf"
|
||||
}
|
||||
}
|
||||
|
||||
if [istarget microblazeel-*-*] {
|
||||
run_dump_test "endian_le"
|
||||
}
|
||||
5
gas/testsuite/gas/microblaze/endian.s
Normal file
5
gas/testsuite/gas/microblaze/endian.s
Normal file
@ -0,0 +1,5 @@
|
||||
.text
|
||||
start:
|
||||
addi r1,r0,1234
|
||||
.long 0x12345678
|
||||
.word 0x1234, 0
|
||||
9
gas/testsuite/gas/microblaze/endian_be.d
Normal file
9
gas/testsuite/gas/microblaze/endian_be.d
Normal file
@ -0,0 +1,9 @@
|
||||
#as:
|
||||
#objdump: -s
|
||||
#name: MicroBlaze Big Endian
|
||||
#source: endian.s
|
||||
|
||||
.*: file format elf32-microblaze
|
||||
|
||||
Contents of section .text:
|
||||
0000 202004d2 12345678 00001234 00000000 ...4Vx...4....
|
||||
9
gas/testsuite/gas/microblaze/endian_le.d
Normal file
9
gas/testsuite/gas/microblaze/endian_le.d
Normal file
@ -0,0 +1,9 @@
|
||||
#as:
|
||||
#objdump: -s
|
||||
#name: MicroBlaze Little Endian
|
||||
#source: endian.s
|
||||
|
||||
.*: file format elf32-microblazeel
|
||||
|
||||
Contents of section .text:
|
||||
0000 d2042020 78563412 34120000 00000000 .. xV4.4.......
|
||||
9
gas/testsuite/gas/microblaze/endian_le_elf.d
Normal file
9
gas/testsuite/gas/microblaze/endian_le_elf.d
Normal file
@ -0,0 +1,9 @@
|
||||
#as: -EL
|
||||
#objdump: -s
|
||||
#name: MicroBlaze Little Endian
|
||||
#source: endian.s
|
||||
|
||||
.*: file format elf32-microblazeel
|
||||
|
||||
Contents of section .text:
|
||||
0000 d2042020 78563412 34120000 00000000 .. xV4.4.......
|
||||
Loading…
Reference in New Issue
Block a user