summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/X86/intel-syntax-error.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/X86/intel-syntax-error.s')
-rw-r--r--llvm/test/MC/X86/intel-syntax-error.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/MC/X86/intel-syntax-error.s b/llvm/test/MC/X86/intel-syntax-error.s
index 7207c952aba..41b068eb3a1 100644
--- a/llvm/test/MC/X86/intel-syntax-error.s
+++ b/llvm/test/MC/X86/intel-syntax-error.s
@@ -11,3 +11,16 @@ _test2:
.att_syntax noprefix
// CHECK: error: '.att_syntax noprefix' is not supported: registers must have a '%' prefix in .att_syntax
movl $257, -4(esp)
+
+
+.intel_syntax noprefix
+
+.global arr
+.global i
+.set FOO, 2
+//CHECK-STDERR: error: cannot use base register with variable reference
+mov eax, DWORD PTR arr[ebp + 1 + (2 * 5) - 3 + 1<<1]
+//CHECK-STDERR: error: cannot use index register with variable reference
+mov eax, DWORD PTR arr[esi*4]
+//CHECK-STDERR: error: cannot use more than one symbol in memory operand
+mov eax, DWORD PTR arr[i]
OpenPOWER on IntegriCloud