diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1995-08-30 20:58:35 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1995-08-30 20:58:35 +0000 |
commit | d4bc80760e4b76bf728e98892e88da8ec1dd7664 (patch) | |
tree | 2512b1fded1c89399a415c9fc3afa8d177b2af78 /gas/testsuite | |
parent | a69d3a72867dbc09cf68844eb26f508f714691be (diff) | |
download | gdb-d4bc80760e4b76bf728e98892e88da8ec1dd7664.zip gdb-d4bc80760e4b76bf728e98892e88da8ec1dd7664.tar.gz gdb-d4bc80760e4b76bf728e98892e88da8ec1dd7664.tar.bz2 |
(prefetch.[sd]): New testcase.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/sparc/.Sanitize | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/sparc/prefetch.d | 17 | ||||
-rw-r--r-- | gas/testsuite/gas/sparc/prefetch.s | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/sparc/sparc.exp | 2 |
4 files changed, 32 insertions, 0 deletions
diff --git a/gas/testsuite/gas/sparc/.Sanitize b/gas/testsuite/gas/sparc/.Sanitize index fa23092..8c4abfd 100644 --- a/gas/testsuite/gas/sparc/.Sanitize +++ b/gas/testsuite/gas/sparc/.Sanitize @@ -27,6 +27,8 @@ asi.d asi.s membar.d membar.s +prefetch.d +prefetch.s sparc.exp Things-to-lose: diff --git a/gas/testsuite/gas/sparc/prefetch.d b/gas/testsuite/gas/sparc/prefetch.d new file mode 100644 index 0000000..7a44752 --- /dev/null +++ b/gas/testsuite/gas/sparc/prefetch.d @@ -0,0 +1,17 @@ +#objdump: -dr +#name: sparc64 prefetch + +.*: +file format .*sparc.* + +No symbols in .* +Disassembly of section .text: +0+0000 prefetch \[ %g1 \], #n_reads +0+0004 prefetch \[ %g1 \], 31 +0+0008 prefetch \[ %g1 \], #n_reads +0+000c prefetch \[ %g1 \], #one_read +0+0010 prefetch \[ %g1 \], #n_writes +0+0014 prefetch \[ %g1 \], #one_write +0+0018 prefetcha \[ %g1 \] #ASI_AIUP, #n_reads +0+001c prefetcha \[ %g1 \] %asi, 31 +0+0020 prefetcha \[ %g1 \] #ASI_AIUS, #n_reads +0+0024 prefetcha \[ %g1 \] %asi, #one_read diff --git a/gas/testsuite/gas/sparc/prefetch.s b/gas/testsuite/gas/sparc/prefetch.s new file mode 100644 index 0000000..18c68bb --- /dev/null +++ b/gas/testsuite/gas/sparc/prefetch.s @@ -0,0 +1,11 @@ + .text + prefetch [%g1],0 + prefetch [%g1],31 + prefetch [%g1],#n_reads + prefetch [%g1],#one_read + prefetch [%g1],#n_writes + prefetch [%g1],#one_write + prefetcha [%g1]#ASI_AIUP,0 + prefetcha [%g1]%asi,31 + prefetcha [%g1]#ASI_AIUS,#n_reads + prefetcha [%g1]%asi,#one_read diff --git a/gas/testsuite/gas/sparc/sparc.exp b/gas/testsuite/gas/sparc/sparc.exp index 8071966..919154c 100644 --- a/gas/testsuite/gas/sparc/sparc.exp +++ b/gas/testsuite/gas/sparc/sparc.exp @@ -5,4 +5,6 @@ if [istarget sparc*-*-*] then { set sparc64 [istarget sparc64*-*-*] if $sparc64 { run_dump_test "asi" } + if $sparc64 { run_dump_test "membar" } + if $sparc64 { run_dump_test "prefetch" } } |