OSDN Git Service

Add encoding tests for flds/filds
authorJoerg Sonnenberger <joerg@bec.de>
Fri, 15 Apr 2011 19:25:31 +0000 (19:25 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Fri, 15 Apr 2011 19:25:31 +0000 (19:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129589 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/X86/x86-32-coverage.s
test/MC/X86/x86_64-encoding.s

index 4ec9fcd..4ac7efd 100644 (file)
 // CHECK:      nop
                nop
 
+// CHECK: flds (%edi)
+// CHECK:  encoding: [0xd9,0x07]
+               flds    (%edi)
+
+// CHECK: filds        (%edi)
+// CHECK:  encoding: [0xdf,0x07]
+               filds   (%edi)
+
 // CHECK:      fldl    3735928559(%ebx,%ecx,8)
                fldl    0xdeadbeef(%ebx,%ecx,8)
 
index 756da4d..cfdf87f 100644 (file)
@@ -155,3 +155,19 @@ pshufb     CPI1_0(%rip), %xmm1
 // CHECK: leave
 // CHECK:  encoding: [0xc9]
                leaveq
+
+// CHECK: flds (%edi)
+// CHECK:  encoding: [0x67,0xd9,0x07]
+               flds    (%edi)
+
+// CHECK: filds        (%edi)
+// CHECK:  encoding: [0x67,0xdf,0x07]
+               filds   (%edi)
+
+// CHECK: flds (%rdi)
+// CHECK:  encoding: [0xd9,0x07]
+               flds    (%rdi)
+
+// CHECK: filds        (%rdi)
+// CHECK:  encoding: [0xdf,0x07]
+               filds   (%rdi)