[llvm] r351094 - [MC][X86] Add test case for invalid use of "(%dx)" operand.

Nirav Dave via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 14 10:44:32 PST 2019


Author: niravd
Date: Mon Jan 14 10:44:32 2019
New Revision: 351094

URL: http://llvm.org/viewvc/llvm-project?rev=351094&view=rev
Log:
[MC][X86] Add test case for invalid use of "(%dx)" operand.

Modified:
    llvm/trunk/test/MC/X86/x86_errors.s

Modified: llvm/trunk/test/MC/X86/x86_errors.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/x86_errors.s?rev=351094&r1=351093&r2=351094&view=diff
==============================================================================
--- llvm/trunk/test/MC/X86/x86_errors.s (original)
+++ llvm/trunk/test/MC/X86/x86_errors.s Mon Jan 14 10:44:32 2019
@@ -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




More information about the llvm-commits mailing list