From 47753fdda576ba18dc978a83520875ddc955c572 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 12 Nov 2008 02:36:55 +0000 Subject: * gas/cris/rd-bcnst2-pic.d, gas/cris/rd-bcnst2.d, gas/cris/rd-bcnst2.s: New tests. --- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/cris/rd-bcnst2-pic.d | 17 +++++++++++++++++ gas/testsuite/gas/cris/rd-bcnst2.d | 17 +++++++++++++++++ gas/testsuite/gas/cris/rd-bcnst2.s | 2 ++ 4 files changed, 41 insertions(+) create mode 100644 gas/testsuite/gas/cris/rd-bcnst2-pic.d create mode 100644 gas/testsuite/gas/cris/rd-bcnst2.d create mode 100644 gas/testsuite/gas/cris/rd-bcnst2.s (limited to 'gas') diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index dbe5cb8588..04a9f1d5fe 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 0000000000..c1e11a1035 --- /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 0000000000..019218501f --- /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 0000000000..a48f18a0d9 --- /dev/null +++ b/gas/testsuite/gas/cris/rd-bcnst2.s @@ -0,0 +1,2 @@ + bmi x0x42 + nop -- cgit v1.2.1