Mercurial > hg > CbC > CbC_llvm
diff test/MC/X86/intel-syntax-error.s @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | 54457678186b |
children | 803732b1fca8 |
line wrap: on
line diff
--- a/test/MC/X86/intel-syntax-error.s Tue Jan 26 22:56:36 2016 +0900 +++ b/test/MC/X86/intel-syntax-error.s Fri Nov 25 19:14:25 2016 +0900 @@ -11,3 +11,21 @@ .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: error: cannot use base register with variable reference +mov eax, DWORD PTR arr[ebp + 1 + (2 * 5) - 3 + 1<<1] +//CHECK: error: cannot use index register with variable reference +mov eax, DWORD PTR arr[esi*4] +//CHECK: error: cannot use more than one symbol in memory operand +mov eax, DWORD PTR arr[i] +//CHECK: error: rip can only be used as a base register +.code64 +mov rax, rip +//CHECK: error: invalid base+index expression +mov rbx, [rax+rip]