From: Hans-Peter Nilsson Date: Wed, 12 Nov 2008 02:36:55 +0000 (+0000) Subject: * gas/cris/rd-bcnst2-pic.d, gas/cris/rd-bcnst2.d, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00be4d3aff7d8b81f43b2bb0ad88e2997d2285e2;p=binutils-gdb.git * gas/cris/rd-bcnst2-pic.d, gas/cris/rd-bcnst2.d, gas/cris/rd-bcnst2.s: New tests. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index dbe5cb85881..04a9f1d5fe6 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-11-12 Hans-Peter Nilsson + + * gas/cris/rd-bcnst2-pic.d, gas/cris/rd-bcnst2.d, + gas/cris/rd-bcnst2.s: New tests. + 2008-11-06 Adam Nemet * gas/mips/mips1-fp.s, testsuite/gas/mips/mips1-fp.d, diff --git a/gas/testsuite/gas/cris/rd-bcnst2-pic.d b/gas/testsuite/gas/cris/rd-bcnst2-pic.d new file mode 100644 index 00000000000..c1e11a10357 --- /dev/null +++ b/gas/testsuite/gas/cris/rd-bcnst2-pic.d @@ -0,0 +1,17 @@ +#objdump: -dr +#as: --pic --underscore --em=criself +#source: rd-bcnst2.s + +# Catches an error in the relaxation machinery. + +.*: file format elf32.*-cris + +Disassembly of section \.text: + +0+ <\.text>: +[ ]+0:[ ]+0ae0[ ]+ba 0xc +[ ]+2:[ ]+0f05[ ]+nop +[ ]+4:[ ]+6ffd 0000 0000 3f0e[ ]+move \[pc=pc\+0x0\],p0 +[ ]+6:[ ]+R_CRIS_32_PCREL[ ]+x0x42 +[ ]+c:[ ]+f770[ ]+bmi 0x4 +[ ]+e:[ ]+0f05[ ]+nop diff --git a/gas/testsuite/gas/cris/rd-bcnst2.d b/gas/testsuite/gas/cris/rd-bcnst2.d new file mode 100644 index 00000000000..019218501f7 --- /dev/null +++ b/gas/testsuite/gas/cris/rd-bcnst2.d @@ -0,0 +1,17 @@ +#objdump: -dr +#as: --underscore --em=criself + +# Consistency check, corresponding to rd-bcnst2-pic.d. + +.*: file format .*-cris + +Disassembly of section \.text: + +0+ <\.text>: +[ ]+0:[ ]+08e0[ ]+ba 0xa +[ ]+2:[ ]+0f05[ ]+nop +[ ]+4:[ ]+3f0d 0000 0000[ ]+jump 0x0 +[ ]+6:[ ]+R_CRIS_32[ ]+x0x42 +[ ]+a:[ ]+f970[ ]+bmi 0x4 +[ ]+c:[ ]+0f05[ ]+nop +[ ]+\.\.\. diff --git a/gas/testsuite/gas/cris/rd-bcnst2.s b/gas/testsuite/gas/cris/rd-bcnst2.s new file mode 100644 index 00000000000..a48f18a0d93 --- /dev/null +++ b/gas/testsuite/gas/cris/rd-bcnst2.s @@ -0,0 +1,2 @@ + bmi x0x42 + nop