From 5a75fe70c391042ed6ad5be0441d5844147c8a68 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 30 Aug 1995 23:11:09 +0000 Subject: [PATCH] (synth64.[ds]): New testcase. --- gas/testsuite/gas/sparc/.Sanitize | 2 ++ gas/testsuite/gas/sparc/synth64.d | 18 ++++++++++++++++++ gas/testsuite/gas/sparc/synth64.s | 16 ++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 gas/testsuite/gas/sparc/synth64.d create mode 100644 gas/testsuite/gas/sparc/synth64.s diff --git a/gas/testsuite/gas/sparc/.Sanitize b/gas/testsuite/gas/sparc/.Sanitize index 8c4abfdef12..366e5ccc0ec 100644 --- a/gas/testsuite/gas/sparc/.Sanitize +++ b/gas/testsuite/gas/sparc/.Sanitize @@ -29,6 +29,8 @@ membar.d membar.s prefetch.d prefetch.s +synth64.d +synth64.s sparc.exp Things-to-lose: diff --git a/gas/testsuite/gas/sparc/synth64.d b/gas/testsuite/gas/sparc/synth64.d new file mode 100644 index 00000000000..a0608e8c058 --- /dev/null +++ b/gas/testsuite/gas/sparc/synth64.d @@ -0,0 +1,18 @@ +#objdump: -dr +#name: sparc64 synth64 + +.*: +file format .*sparc.* + +Disassembly of section .text: +0+0000 iprefetch 0+0004 +0+0004 signx %g1, %g2 +0+0008 clruw %g1, %g2 +0+000c cas \[ %g1 \], %g2, %g3 +0+0010 casl \[ %g1 \], %g2, %g3 +0+0014 casx \[ %g1 \], %g2, %g3 +0+0018 casxl \[ %g1 \], %g2, %g3 +0+001c clrx \[ %g1 \+ %g2 \] +0+0020 clrx \[ %g1 \] +0+0024 clrx \[ %g1 \+ 1 \] +0+0028 clrx \[ %g1 \+ 0x2a \] +0+002c clrx \[ 0x42 \] diff --git a/gas/testsuite/gas/sparc/synth64.s b/gas/testsuite/gas/sparc/synth64.s new file mode 100644 index 00000000000..659f3c270ba --- /dev/null +++ b/gas/testsuite/gas/sparc/synth64.s @@ -0,0 +1,16 @@ +# sparc64 synthetic insns + .text + iprefetch foo +foo: + signx %g1,%g2 + clruw %g1,%g2 + cas [%g1],%g2,%g3 + casl [%g1],%g2,%g3 + casx [%g1],%g2,%g3 + casxl [%g1],%g2,%g3 + + clrx [%g1+%g2] + clrx [%g1] + clrx [%g1+1] + clrx [42+%g1] + clrx [0x42] -- 2.30.2