diff options
Diffstat (limited to 'clang/test/CodeGen/x86-64-inline-asm.c')
-rw-r--r-- | clang/test/CodeGen/x86-64-inline-asm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGen/x86-64-inline-asm.c b/clang/test/CodeGen/x86-64-inline-asm.c index fefbf76dd90..bb46eda633b 100644 --- a/clang/test/CodeGen/x86-64-inline-asm.c +++ b/clang/test/CodeGen/x86-64-inline-asm.c @@ -10,3 +10,8 @@ void f() { // expected-error@-5 {{scale factor without index register is ignored}} #endif } + +static unsigned var[1] = {}; +void g(void) { asm volatile("movd %%xmm0, %0" + : + : "m"(var)); } |