diff options
| author | Coby Tayree <coby.tayree@intel.com> | 2017-08-24 08:47:26 +0000 |
|---|---|---|
| committer | Coby Tayree <coby.tayree@intel.com> | 2017-08-24 08:47:26 +0000 |
| commit | cfa3810aa0137984a730fb3bc65d0307ed7f1640 (patch) | |
| tree | e0fabb65daef64d13170d2e6d9e26872338f3d0e /clang/test/Sema/ms-inline-asm.c | |
| parent | d89128925bd56ca314ffb4c895b06e566560c51a (diff) | |
| download | bcm5719-llvm-cfa3810aa0137984a730fb3bc65d0307ed7f1640.tar.gz bcm5719-llvm-cfa3810aa0137984a730fb3bc65d0307ed7f1640.zip | |
Fixups to FE tests affected by D36793
Differential Revision: https://reviews.llvm.org/D36794
llvm-svn: 311640
Diffstat (limited to 'clang/test/Sema/ms-inline-asm.c')
| -rw-r--r-- | clang/test/Sema/ms-inline-asm.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/clang/test/Sema/ms-inline-asm.c b/clang/test/Sema/ms-inline-asm.c index 952112ea8cf..3fc74fa99c3 100644 --- a/clang/test/Sema/ms-inline-asm.c +++ b/clang/test/Sema/ms-inline-asm.c @@ -59,18 +59,13 @@ int t2(int *arr, int i) { mov eax, arr[1 + (2 * 5) - 3 + 1<<1]; } - // expected-error@+1 {{cannot use base register with variable reference}} - __asm { mov eax, arr[ebp + 1 + (2 * 5) - 3 + 1<<1] } - // expected-error@+1 {{cannot use index register with variable reference}} - __asm { mov eax, arr[esi * 4] } // expected-error@+1 {{cannot use more than one symbol in memory operand}} __asm { mov eax, arr[i] } // expected-error@+1 {{cannot use more than one symbol in memory operand}} __asm { mov eax, global[i] } - // FIXME: Why don't we diagnose this? - // expected-Xerror@+1 {{cannot reference multiple local variables in assembly operand}} - //__asm mov eax, [arr + i]; + // expected-error@+1 {{cannot use more than one symbol in memory operand}} + __asm mov eax, [arr + i]; return 0; } @@ -98,7 +93,7 @@ void t4() { __asm { mov eax, fs:[0] A.a } __asm { mov eax, fs:[0].A.a } __asm { mov eax, fs:[0].a } // expected-error {{Unable to lookup field reference!}} - __asm { mov eax, fs:[0]. A.a } // expected-error {{Unexpected token type!}} + __asm { mov eax, fs:[0]. A.a } // expected-error {{unexpected token in argument list}} } void test_operand_size() { |

