mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
(prefetch.[sd]): New testcase.
This commit is contained in:
@ -27,6 +27,8 @@ asi.d
|
|||||||
asi.s
|
asi.s
|
||||||
membar.d
|
membar.d
|
||||||
membar.s
|
membar.s
|
||||||
|
prefetch.d
|
||||||
|
prefetch.s
|
||||||
sparc.exp
|
sparc.exp
|
||||||
|
|
||||||
Things-to-lose:
|
Things-to-lose:
|
||||||
|
17
gas/testsuite/gas/sparc/prefetch.d
Normal file
17
gas/testsuite/gas/sparc/prefetch.d
Normal file
@ -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
|
11
gas/testsuite/gas/sparc/prefetch.s
Normal file
11
gas/testsuite/gas/sparc/prefetch.s
Normal file
@ -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
|
@ -5,4 +5,6 @@ if [istarget sparc*-*-*] then {
|
|||||||
set sparc64 [istarget sparc64*-*-*]
|
set sparc64 [istarget sparc64*-*-*]
|
||||||
|
|
||||||
if $sparc64 { run_dump_test "asi" }
|
if $sparc64 { run_dump_test "asi" }
|
||||||
|
if $sparc64 { run_dump_test "membar" }
|
||||||
|
if $sparc64 { run_dump_test "prefetch" }
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user