X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=gas%2Ftestsuite%2Fgas%2Fi386%2Fsib.s;fp=gas%2Ftestsuite%2Fgas%2Fi386%2Fsib.s;h=430da42b73c55c6ba7068e0a96852b9942b04c77;hp=25d88b75a6da95c2b174ea7df01c519b2bb82313;hb=88750007d7869f178f0ba528f41efd3b74c424cf;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/gas/testsuite/gas/i386/sib.s b/gas/testsuite/gas/i386/sib.s index 25d88b7..430da42 100644 --- a/gas/testsuite/gas/i386/sib.s +++ b/gas/testsuite/gas/i386/sib.s @@ -1,11 +1,49 @@ #Test the special case of the index bits, 0x4, in SIB. .text + .allow_index_reg foo: - .byte 0x8B, 0x04, 0x23 # effect is: movl (%ebx), %eax - .byte 0x8B, 0x04, 0x63 # effect is: movl (%ebx), %eax - .byte 0x8B, 0x04, 0xA3 # effect is: movl (%ebx), %eax - .byte 0x8B, 0x04, 0xE3 # effect is: movl (%ebx), %eax - nop - nop - .p2align 4,0 + mov -30,%ebx + mov -30(,%eiz),%ebx + mov -30(,%eiz,1),%eax + mov -30(,%eiz,2),%eax + mov -30(,%eiz,4),%eax + mov -30(,%eiz,8),%eax + mov 30,%eax + mov 30(,%eiz),%eax + mov 30(,%eiz,1),%eax + mov 30(,%eiz,2),%eax + mov 30(,%eiz,4),%eax + mov 30(,%eiz,8),%eax + mov (%ebx),%eax + mov (%ebx,%eiz),%eax + mov (%ebx,%eiz,1),%eax + mov (%ebx,%eiz,2),%eax + mov (%ebx,%eiz,4),%eax + mov (%ebx,%eiz,8),%eax + mov (%esp),%eax + mov (%esp,%eiz,1),%eax + mov (%esp,%eiz,2),%eax + mov (%esp,%eiz,4),%eax + mov (%esp,%eiz,8),%eax + .intel_syntax noprefix + mov eax,DWORD PTR [eiz*1-30] + mov eax,DWORD PTR [eiz*2-30] + mov eax,DWORD PTR [eiz*4-30] + mov eax,DWORD PTR [eiz*8-30] + mov eax,DWORD PTR [eiz*1+30] + mov eax,DWORD PTR [eiz*2+30] + mov eax,DWORD PTR [eiz*4+30] + mov eax,DWORD PTR [eiz*8+30] + mov eax,DWORD PTR [ebx+eiz] + mov eax,DWORD PTR [ebx+eiz*1] + mov eax,DWORD PTR [ebx+eiz*2] + mov eax,DWORD PTR [ebx+eiz*4] + mov eax,DWORD PTR [ebx+eiz*8] + mov eax,DWORD PTR [esp] + mov eax,DWORD PTR [esp+eiz] + mov eax,DWORD PTR [esp+eiz*1] + mov eax,DWORD PTR [esp+eiz*2] + mov eax,DWORD PTR [esp+eiz*4] + mov eax,DWORD PTR [esp+eiz*8] + .p2align 4