* fixed an assembler bug in "addl reg -> mem"
This commit is contained in:
+4
-1
@@ -48,7 +48,10 @@ sub gen3{
|
||||
}
|
||||
}
|
||||
|
||||
gen1 "addl \$0x12345678, 7(r1)\n";
|
||||
#gen1 "addl \$0x12345678, 7(r1)\n";
|
||||
|
||||
#gen2 "addl 0x23(r1), r2\n";
|
||||
gen2 "addl r1, 0x23(r2)\n";
|
||||
|
||||
#gen1 "movb \$0, 4(r1)\n";
|
||||
#gen1 "movb -2(r1), %ah\n";
|
||||
|
||||
+64
-8
@@ -1,9 +1,65 @@
|
||||
.text
|
||||
addl $0x12345678, 7(%eax)
|
||||
addl $0x12345678, 7(%ecx)
|
||||
addl $0x12345678, 7(%edx)
|
||||
addl $0x12345678, 7(%ebx)
|
||||
addl $0x12345678, 7(%esp)
|
||||
addl $0x12345678, 7(%ebp)
|
||||
addl $0x12345678, 7(%esi)
|
||||
addl $0x12345678, 7(%edi)
|
||||
addl %eax, 0x23(%eax)
|
||||
addl %eax, 0x23(%ecx)
|
||||
addl %eax, 0x23(%edx)
|
||||
addl %eax, 0x23(%ebx)
|
||||
addl %eax, 0x23(%esp)
|
||||
addl %eax, 0x23(%ebp)
|
||||
addl %eax, 0x23(%esi)
|
||||
addl %eax, 0x23(%edi)
|
||||
addl %ecx, 0x23(%eax)
|
||||
addl %ecx, 0x23(%ecx)
|
||||
addl %ecx, 0x23(%edx)
|
||||
addl %ecx, 0x23(%ebx)
|
||||
addl %ecx, 0x23(%esp)
|
||||
addl %ecx, 0x23(%ebp)
|
||||
addl %ecx, 0x23(%esi)
|
||||
addl %ecx, 0x23(%edi)
|
||||
addl %edx, 0x23(%eax)
|
||||
addl %edx, 0x23(%ecx)
|
||||
addl %edx, 0x23(%edx)
|
||||
addl %edx, 0x23(%ebx)
|
||||
addl %edx, 0x23(%esp)
|
||||
addl %edx, 0x23(%ebp)
|
||||
addl %edx, 0x23(%esi)
|
||||
addl %edx, 0x23(%edi)
|
||||
addl %ebx, 0x23(%eax)
|
||||
addl %ebx, 0x23(%ecx)
|
||||
addl %ebx, 0x23(%edx)
|
||||
addl %ebx, 0x23(%ebx)
|
||||
addl %ebx, 0x23(%esp)
|
||||
addl %ebx, 0x23(%ebp)
|
||||
addl %ebx, 0x23(%esi)
|
||||
addl %ebx, 0x23(%edi)
|
||||
addl %esp, 0x23(%eax)
|
||||
addl %esp, 0x23(%ecx)
|
||||
addl %esp, 0x23(%edx)
|
||||
addl %esp, 0x23(%ebx)
|
||||
addl %esp, 0x23(%esp)
|
||||
addl %esp, 0x23(%ebp)
|
||||
addl %esp, 0x23(%esi)
|
||||
addl %esp, 0x23(%edi)
|
||||
addl %ebp, 0x23(%eax)
|
||||
addl %ebp, 0x23(%ecx)
|
||||
addl %ebp, 0x23(%edx)
|
||||
addl %ebp, 0x23(%ebx)
|
||||
addl %ebp, 0x23(%esp)
|
||||
addl %ebp, 0x23(%ebp)
|
||||
addl %ebp, 0x23(%esi)
|
||||
addl %ebp, 0x23(%edi)
|
||||
addl %esi, 0x23(%eax)
|
||||
addl %esi, 0x23(%ecx)
|
||||
addl %esi, 0x23(%edx)
|
||||
addl %esi, 0x23(%ebx)
|
||||
addl %esi, 0x23(%esp)
|
||||
addl %esi, 0x23(%ebp)
|
||||
addl %esi, 0x23(%esi)
|
||||
addl %esi, 0x23(%edi)
|
||||
addl %edi, 0x23(%eax)
|
||||
addl %edi, 0x23(%ecx)
|
||||
addl %edi, 0x23(%edx)
|
||||
addl %edi, 0x23(%ebx)
|
||||
addl %edi, 0x23(%esp)
|
||||
addl %edi, 0x23(%ebp)
|
||||
addl %edi, 0x23(%esi)
|
||||
addl %edi, 0x23(%edi)
|
||||
|
||||
Reference in New Issue
Block a user