Browse Source
gas/ * config/tc-i386.c (_i386_insn): Add rep_prefix. (md_assemble): Check if REP prefix is OK. (parse_insn): Remove expecting_string_instruction. Set i.rep_prefix. gas/testsuite/ * gas/i386/i386.exp: Run inval-rep and x86-64-inval-rep. * gas/i386/inval-rep.l: New file. * gas/i386/inval-rep.s: Likewise. * gas/i386/x86-64-inval-rep.l: Likewise. * gas/i386/x86-64-inval-rep.s: Likewise.gdb_7_6-branch
8 changed files with 72 additions and 25 deletions
@ -0,0 +1,15 @@ |
|||
.*: Assembler messages: |
|||
.*:2: Error: .* |
|||
.*:3: Error: .* |
|||
.*:4: Error: .* |
|||
.*:5: Error: .* |
|||
.*:6: Error: .* |
|||
GAS LISTING .* |
|||
|
|||
|
|||
[ ]*1[ ]+\.text |
|||
[ ]*2[ ]+rep add %ebx, %eax |
|||
[ ]*3[ ]+repe add %ebx, %eax |
|||
[ ]*4[ ]+repz add %ebx, %eax |
|||
[ ]*5[ ]+repne add %ebx, %eax |
|||
[ ]*6[ ]+repnz add %ebx, %eax |
|||
@ -0,0 +1,6 @@ |
|||
.text |
|||
rep add %ebx, %eax |
|||
repe add %ebx, %eax |
|||
repz add %ebx, %eax |
|||
repne add %ebx, %eax |
|||
repnz add %ebx, %eax |
|||
@ -0,0 +1,15 @@ |
|||
.*: Assembler messages: |
|||
.*:2: Error: .* |
|||
.*:3: Error: .* |
|||
.*:4: Error: .* |
|||
.*:5: Error: .* |
|||
.*:6: Error: .* |
|||
GAS LISTING .* |
|||
|
|||
|
|||
[ ]*1[ ]+\.text |
|||
[ ]*2[ ]+rep add %rbx, %rax |
|||
[ ]*3[ ]+repe add %rbx, %rax |
|||
[ ]*4[ ]+repz add %rbx, %rax |
|||
[ ]*5[ ]+repne add %rbx, %rax |
|||
[ ]*6[ ]+repnz add %rbx, %rax |
|||
@ -0,0 +1,6 @@ |
|||
.text |
|||
rep add %rbx, %rax |
|||
repe add %rbx, %rax |
|||
repz add %rbx, %rax |
|||
repne add %rbx, %rax |
|||
repnz add %rbx, %rax |
|||
Loading…
Reference in new issue