From c25e8d8cea7af83b5538ac0e521366d06c9720d9 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Fri, 15 Apr 2011 19:25:31 +0000 Subject: [PATCH] Add encoding tests for flds/filds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129589 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/X86/x86-32-coverage.s | 8 ++++++++ test/MC/X86/x86_64-encoding.s | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/test/MC/X86/x86-32-coverage.s b/test/MC/X86/x86-32-coverage.s index 4ec9fcdb1ee..4ac7efda01d 100644 --- a/test/MC/X86/x86-32-coverage.s +++ b/test/MC/X86/x86-32-coverage.s @@ -372,6 +372,14 @@ // 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) diff --git a/test/MC/X86/x86_64-encoding.s b/test/MC/X86/x86_64-encoding.s index 756da4dc352..cfdf87f3e34 100644 --- a/test/MC/X86/x86_64-encoding.s +++ b/test/MC/X86/x86_64-encoding.s @@ -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) -- 2.34.1