mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Move rep tests for bsf/bsr/ret to rep-suffix
* gas/i386/i386.exp: Don't run rep-bsf nor rep-ret. * gas/i386/rep-bsf.d: Removed. * gas/i386/rep-bsf.s: Likewise. * gas/i386/rep-ret.d: Likewise. * gas/i386/rep-ret.s: Likewise. * gas/i386/rep-suffix.d: Updated. * gas/i386/x86-64-rep-suffix.d: Likewise. * gas/i386/ilp32/x86-64-rep-suffix.d: Likewise. * gas/i386/rep-suffix.s: Add tests for bsf, bsr and ret. * i386/x86-64-rep-suffix.s: Likewise.
This commit is contained in:
@ -1,3 +1,19 @@
|
|||||||
|
2012-07-02 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* gas/i386/i386.exp: Don't run rep-bsf nor rep-ret.
|
||||||
|
|
||||||
|
* gas/i386/rep-bsf.d: Removed.
|
||||||
|
* gas/i386/rep-bsf.s: Likewise.
|
||||||
|
* gas/i386/rep-ret.d: Likewise.
|
||||||
|
* gas/i386/rep-ret.s: Likewise.
|
||||||
|
|
||||||
|
* gas/i386/rep-suffix.d: Updated.
|
||||||
|
* gas/i386/x86-64-rep-suffix.d: Likewise.
|
||||||
|
* gas/i386/ilp32/x86-64-rep-suffix.d: Likewise.
|
||||||
|
|
||||||
|
* gas/i386/rep-suffix.s: Add tests for bsf, bsr and ret.
|
||||||
|
* i386/x86-64-rep-suffix.s: Likewise.
|
||||||
|
|
||||||
2012-06-30 H.J. Lu <hongjiu.lu@intel.com>
|
2012-06-30 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR gas/14315
|
PR gas/14315
|
||||||
|
@ -264,8 +264,6 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
|
|||||||
|
|
||||||
# Miscellaneous tests.
|
# Miscellaneous tests.
|
||||||
run_dump_test "pr12589-1"
|
run_dump_test "pr12589-1"
|
||||||
run_dump_test "rep-bsf"
|
|
||||||
run_dump_test "rep-ret"
|
|
||||||
|
|
||||||
set ASFLAGS "$old_ASFLAGS"
|
set ASFLAGS "$old_ASFLAGS"
|
||||||
}
|
}
|
||||||
|
@ -15,4 +15,7 @@ Disassembly of section .text:
|
|||||||
c: f3 ab[ ]+rep stosl %eax,%es:\(%rdi\)
|
c: f3 ab[ ]+rep stosl %eax,%es:\(%rdi\)
|
||||||
e: f3 48 ad[ ]+rep lodsq %ds:\(%rsi\),%rax
|
e: f3 48 ad[ ]+rep lodsq %ds:\(%rsi\),%rax
|
||||||
11: f3 48 ab[ ]+rep stosq %rax,%es:\(%rdi\)
|
11: f3 48 ab[ ]+rep stosq %rax,%es:\(%rdi\)
|
||||||
|
14: f3 0f bc c1[ ]+tzcntl %ecx,%eax
|
||||||
|
18: f3 0f bd c1[ ]+lzcntl %ecx,%eax
|
||||||
|
1c: f3 c3[ ]+repz retq
|
||||||
#pass
|
#pass
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
#objdump: -d
|
|
||||||
#name: rep prefix on bsf/bsr
|
|
||||||
|
|
||||||
.*: +file format .*
|
|
||||||
|
|
||||||
Disassembly of section .text:
|
|
||||||
|
|
||||||
0+000 <bsf>:
|
|
||||||
\s*[0-9]+:\s+f3 0f bc c1\s+tzcnt %ecx,%eax
|
|
||||||
0+004 <bsr>:
|
|
||||||
\s*[0-9]+:\s+f3 0f bd c1\s+lzcnt %ecx,%eax
|
|
@ -1,3 +0,0 @@
|
|||||||
.text
|
|
||||||
bsf: rep bsf %ecx, %eax
|
|
||||||
bsr: rep bsr %ecx, %eax
|
|
@ -1,10 +0,0 @@
|
|||||||
#objdump: -d
|
|
||||||
#name: rep prefix on ret
|
|
||||||
|
|
||||||
.*: +file format .*
|
|
||||||
|
|
||||||
Disassembly of section .text:
|
|
||||||
|
|
||||||
0+000 <foo>:
|
|
||||||
\s*[0-9a-f]+:\s+f3 c3\s+repz ret\s*
|
|
||||||
\.\.\.
|
|
@ -1,3 +0,0 @@
|
|||||||
.text
|
|
||||||
foo: rep ret
|
|
||||||
.p2align 4,0
|
|
@ -12,4 +12,7 @@ Disassembly of section .text:
|
|||||||
7: 66 f3 ab[ ]+rep stosw %ax,%es:\(%edi\)
|
7: 66 f3 ab[ ]+rep stosw %ax,%es:\(%edi\)
|
||||||
a: f3 ad[ ]+rep lodsl %ds:\(%esi\),%eax
|
a: f3 ad[ ]+rep lodsl %ds:\(%esi\),%eax
|
||||||
c: f3 ab[ ]+rep stosl %eax,%es:\(%edi\)
|
c: f3 ab[ ]+rep stosl %eax,%es:\(%edi\)
|
||||||
|
e: f3 0f bc c1[ ]+tzcntl %ecx,%eax
|
||||||
|
12: f3 0f bd c1[ ]+lzcntl %ecx,%eax
|
||||||
|
16: f3 c3[ ]+repz retl
|
||||||
#pass
|
#pass
|
||||||
|
@ -7,3 +7,8 @@ _start:
|
|||||||
rep stosw
|
rep stosw
|
||||||
rep lodsl
|
rep lodsl
|
||||||
rep stosl
|
rep stosl
|
||||||
|
|
||||||
|
rep bsf %ecx, %eax
|
||||||
|
rep bsr %ecx, %eax
|
||||||
|
|
||||||
|
rep ret
|
||||||
|
@ -14,4 +14,7 @@ Disassembly of section .text:
|
|||||||
c: f3 ab[ ]+rep stosl %eax,%es:\(%rdi\)
|
c: f3 ab[ ]+rep stosl %eax,%es:\(%rdi\)
|
||||||
e: f3 48 ad[ ]+rep lodsq %ds:\(%rsi\),%rax
|
e: f3 48 ad[ ]+rep lodsq %ds:\(%rsi\),%rax
|
||||||
11: f3 48 ab[ ]+rep stosq %rax,%es:\(%rdi\)
|
11: f3 48 ab[ ]+rep stosq %rax,%es:\(%rdi\)
|
||||||
|
14: f3 0f bc c1[ ]+tzcntl %ecx,%eax
|
||||||
|
18: f3 0f bd c1[ ]+lzcntl %ecx,%eax
|
||||||
|
1c: f3 c3[ ]+repz retq
|
||||||
#pass
|
#pass
|
||||||
|
@ -9,3 +9,8 @@ _start:
|
|||||||
rep stosl
|
rep stosl
|
||||||
rep lodsq
|
rep lodsq
|
||||||
rep stosq
|
rep stosq
|
||||||
|
|
||||||
|
rep bsf %ecx, %eax
|
||||||
|
rep bsr %ecx, %eax
|
||||||
|
|
||||||
|
rep ret
|
||||||
|
Reference in New Issue
Block a user