diff options
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/frv/allinsn.exp | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/frv/immediates.d | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/frv/immediates.s | 9 |
4 files changed, 30 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 939d56a..5fa4335 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2011-12-15 Nick Clifton <nickc@redhat.com> + + * gas/frv/immediates.s: New test file - checks assembly of + constant values. + * gas/frv/immediates.d: Expected disassembly. + * gas/frv/allinsn.exp: Run the new test. + 2011-12-14 Stuart Henderson <shenders@gcc.gnu.org> * gas/bfin/move.d: Update SRCx field expectations. diff --git a/gas/testsuite/gas/frv/allinsn.exp b/gas/testsuite/gas/frv/allinsn.exp index b6950ae..4796b8a 100644 --- a/gas/testsuite/gas/frv/allinsn.exp +++ b/gas/testsuite/gas/frv/allinsn.exp @@ -17,4 +17,6 @@ if [istarget frv*-*-*] { run_list_test "fr450-media-issue" "-mcpu=fr450" run_dump_test "fr550-pack1" + + run_dump_test "immediates" } diff --git a/gas/testsuite/gas/frv/immediates.d b/gas/testsuite/gas/frv/immediates.d new file mode 100644 index 0000000..7ac8c40 --- /dev/null +++ b/gas/testsuite/gas/frv/immediates.d @@ -0,0 +1,12 @@ +#as: +#objdump: -d +#name: Parsing immediate values + +.*: +file format .* + +Disassembly of section \.text: + +00000000 <foo>: + 0:[ ]+86 fc e0 00[ ]+setlos 0xff+e000,gr3 + 4:[ ]+08 f8 3f ff[ ]+sethi.p 0x3fff,gr4 + diff --git a/gas/testsuite/gas/frv/immediates.s b/gas/testsuite/gas/frv/immediates.s new file mode 100644 index 0000000..d3fe668 --- /dev/null +++ b/gas/testsuite/gas/frv/immediates.s @@ -0,0 +1,9 @@ + ;; These instructions can be found in the FRV Linux kernel. + ;; They used to fail to assemble on 64-bit host machines + ;; because of sign-extension problems. + + .text + .global foo +foo: + setlos #0xffffe000, gr3 + sethi.p %hi(~(0x80000000 | 0x40000000)), gr4 |