]> granicus.if.org Git - llvm/commitdiff
[MC][X86] Add test case for invalid use of "(%dx)" operand.
authorNirav Dave <niravd@google.com>
Mon, 14 Jan 2019 18:44:32 +0000 (18:44 +0000)
committerNirav Dave <niravd@google.com>
Mon, 14 Jan 2019 18:44:32 +0000 (18:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351094 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/X86/x86_errors.s

index d2f80a4363abee690f9aea870cc0b7ed59e81523..d999591838910d19e7e2d578d81da1d76afde5bb 100644 (file)
@@ -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