diff options
Diffstat (limited to 'test/CodeGen/asm-variable.c')
-rw-r--r-- | test/CodeGen/asm-variable.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/asm-variable.c b/test/CodeGen/asm-variable.c index a37132d..dc087bd 100644 --- a/test/CodeGen/asm-variable.c +++ b/test/CodeGen/asm-variable.c @@ -57,3 +57,9 @@ unsigned long long foo2(unsigned long long addr, double a0, } // CHECK: call i64 asm "call *$1", "={rax},r,{xmm0},{xmm1},{xmm2},{xmm3},{xmm4},{xmm5},{xmm6},{xmm7},~{dirflag},~{fpsr},~{flags} + +int randomvar asm("randomvar"); +void foo3() { + asm("vartest %0" : : "r"(randomvar)); +} +// CHECK: call void asm sideeffect "vartest $0", "r,~{dirflag},~{fpsr},~{flags}" |