summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-29 18:39:16 +0000
committerChris Lattner <sabre@nondot.org>2010-09-29 18:39:16 +0000
commitd2484e0105a9476e70e7449546273fe32ca4eed0 (patch)
tree46ef2e07f9b829c51f35508a83112a279e0a4d4a /test
parenteabfd7cc064483a26734d8f7fe7a2f0605aee686 (diff)
downloadexternal_llvm-d2484e0105a9476e70e7449546273fe32ca4eed0.zip
external_llvm-d2484e0105a9476e70e7449546273fe32ca4eed0.tar.gz
external_llvm-d2484e0105a9476e70e7449546273fe32ca4eed0.tar.bz2
implement rdar://8491845 - Gas supports commuted forms of non-commutable instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/AsmParser/X86/x86_instructions.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/AsmParser/X86/x86_instructions.s b/test/MC/AsmParser/X86/x86_instructions.s
index d182917..6da4468 100644
--- a/test/MC/AsmParser/X86/x86_instructions.s
+++ b/test/MC/AsmParser/X86/x86_instructions.s
@@ -466,3 +466,11 @@ movmskpd %xmm6, %rax
movmskpd %xmm6, %eax
// CHECK: movmskpd %xmm6, %eax
// CHECK: encoding: [0x66,0x0f,0x50,0xc6]
+
+// rdar://8491845 - Gas supports commuted forms of non-commutable instructions.
+fdivrp %st(0), %st(1) // CHECK: encoding: [0xde,0xf9]
+fdivrp %st(1), %st(0) // CHECK: encoding: [0xde,0xf9]
+
+fsubrp %ST(0), %ST(1) // CHECK: encoding: [0xde,0xe9]
+fsubrp %ST(1), %ST(0) // CHECK: encoding: [0xde,0xe9]
+