diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-10-18 15:49:40 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-10-18 15:49:40 +0000 |
commit | ce2bcbf8c0e1368cf04e79fa4bfa3c3bc09a3697 (patch) | |
tree | ce9a066c9364220f13b1d3768dee371a730e2ed8 /clang/test/CodeGen/ms-inline-asm.c | |
parent | 8bce66414462bb7f92548bf552a7f06a914a88d3 (diff) | |
download | bcm5719-llvm-ce2bcbf8c0e1368cf04e79fa4bfa3c3bc09a3697.tar.gz bcm5719-llvm-ce2bcbf8c0e1368cf04e79fa4bfa3c3bc09a3697.zip |
[ms-inline asm] Move most of the AsmParsing logic in clang back into the MC
layer. Use the new ParseMSInlineAsm() API and add an implementation of the
MCAsmParserSemaCallback interface.
llvm-svn: 166184
Diffstat (limited to 'clang/test/CodeGen/ms-inline-asm.c')
-rw-r--r-- | clang/test/CodeGen/ms-inline-asm.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c index 387a49cfd21..f16cd81edad 100644 --- a/clang/test/CodeGen/ms-inline-asm.c +++ b/clang/test/CodeGen/ms-inline-asm.c @@ -114,3 +114,20 @@ unsigned t12(void) { // CHECK: t12 // CHECK: call void asm sideeffect inteldialect "mov eax, $2\0A\09mov $0, eax\0A\09mov eax, $3\0A\09mov $1, eax", "=*m,=*m,*m,*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}, i32* %{{.*}}, i32* %{{.*}}, i32* %{{.*}}) nounwind } + +#if 0 +void t13() { + unsigned i = 1, j = 2; +// __asm mov eax, [ebx] +// __asm mov eax, [4*ecx] +// __asm mov eax, [4] +// __asm mov eax, [ebx + 4*ecx] +// __asm mov eax, [ebx + 4*ecx + 4] + __asm mov eax, [i] + __asm mov eax, [i + 4*ecx] + __asm mov eax, [i + 4*ecx + 4] + __asm mov eax, [4*i] + __asm mov eax, [ebx + 4*i] + __asm mov eax, [ebx + 4*i + 4] +} +#endif |