summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2019-01-14 18:44:32 +0000
committerNirav Dave <niravd@google.com>2019-01-14 18:44:32 +0000
commita0946dc7402c4886fa2a0593724adbc3a742528d (patch)
tree185eb9c410e60f7bc8544ee2fa1dcfa071789c88
parentb23ff7a0e251edffab75a498978224276bc1ebd0 (diff)
downloadbcm5719-llvm-a0946dc7402c4886fa2a0593724adbc3a742528d.tar.gz
bcm5719-llvm-a0946dc7402c4886fa2a0593724adbc3a742528d.zip
[MC][X86] Add test case for invalid use of "(%dx)" operand.
llvm-svn: 351094
-rw-r--r--llvm/test/MC/X86/x86_errors.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/MC/X86/x86_errors.s b/llvm/test/MC/X86/x86_errors.s
index d2f80a4363a..d9995918389 100644
--- a/llvm/test/MC/X86/x86_errors.s
+++ b/llvm/test/MC/X86/x86_errors.s
@@ -154,3 +154,7 @@ mov $v_eax, %ecx
// 32: error: unexpected token in argument list
// 64: error: unexpected token in argument list
mov v_ecx(%eax), %ecx
+
+// 32: 7: error: invalid operand for instruction
+// 64: 7: error: invalid operand for instruction
+addb (%dx), %al
OpenPOWER on IntegriCloud