From 9fad66b50be95f8983682ff51c3357f062588176 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 6 Dec 1993 03:26:33 +0000 Subject: [PATCH] * gas/hppa/reloc/roundmode.s: New test. * gas/hppa/reloc/reloc.exp: Run it. Fix typo in last change. --- gas/testsuite/ChangeLog | 10 ++++++++++ gas/testsuite/gas/hppa/reloc/.Sanitize | 1 + gas/testsuite/gas/hppa/reloc/roundmode.s | 23 +++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 gas/testsuite/gas/hppa/reloc/roundmode.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 8cb10cc339..c03ed0d5ac 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,13 @@ +Sun Dec 5 19:24:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu) + + * gas/hppa/reloc/roundmode.s: New test. + * gas/hppa/reloc/reloc.exp: Run it. Fix typo in last change. + +Wed Dec 1 10:44:18 1993 Jeffrey A. Law (law@snake.cs.utah.edu) + + * gas/hppa/reloc/reloc.exp: Run the first half of bogus R_EXIT + test for ELF. + Tue Nov 30 13:43:21 1993 Jeffrey A. Law (law@snake.cs.utah.edu) * gas/hppa/more.parse/parse.exp: Test for error on for subspace diff --git a/gas/testsuite/gas/hppa/reloc/.Sanitize b/gas/testsuite/gas/hppa/reloc/.Sanitize index b4d9bb0356..dc2b0814a7 100644 --- a/gas/testsuite/gas/hppa/reloc/.Sanitize +++ b/gas/testsuite/gas/hppa/reloc/.Sanitize @@ -34,6 +34,7 @@ labelopbug.s plabelbug.s reloc.exp relocreduce.s +roundmode.s selectorbug.s Things-to-lose: diff --git a/gas/testsuite/gas/hppa/reloc/roundmode.s b/gas/testsuite/gas/hppa/reloc/roundmode.s new file mode 100644 index 0000000000..96a37ce662 --- /dev/null +++ b/gas/testsuite/gas/hppa/reloc/roundmode.s @@ -0,0 +1,23 @@ + .SPACE $PRIVATE$ + .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31 + .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82 + .SPACE $TEXT$ + .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44 + .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY + + .SPACE $TEXT$ + .SUBSPA $CODE$ + + .align 4 + .IMPORT foo,data + +; Switch in/out of different rounding modes. +; Also make sure we "optimize" away useless rounding mode relocations + addil LR'foo-0x12345,%r27 + ldo RR'foo-0x12345(%r1),%r1 + addil L'foo-0x12345,%r27 + ldo R'foo-0x12345(%r1),%r1 + addil LS'foo-0x12345,%r27 + ldo RS'foo-0x12345(%r1),%r1 + addil LD'foo-0x12345,%r27 + ldo RD'foo-0x12345(%r1),%r1 -- 2.34.1