From 3e0dd89adf8487b0f4aaaa4db3c8e761173d8d77 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Sat, 5 Jul 2014 15:04:06 +0000 Subject: [PATCH] Add a test case for the tilde operator in Microsoft inline assembly llvm-svn: 212373 --- clang/test/CodeGen/ms-inline-asm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c index 6395e42..3836ddd 100644 --- a/clang/test/CodeGen/ms-inline-asm.c +++ b/clang/test/CodeGen/ms-inline-asm.c @@ -409,6 +409,7 @@ void t37() { __asm mov eax, 4 + 8 * -16 __asm mov eax, 4 + 16 / -8 __asm mov eax, (16 + 16) / -8 + __asm mov eax, ~15 // CHECK: t37 // CHECK: call void asm sideeffect inteldialect "mov eax, $$12", "~{eax},~{dirflag},~{fpsr},~{flags}"() // CHECK: call void asm sideeffect inteldialect "mov eax, $$132", "~{eax},~{dirflag},~{fpsr},~{flags}"() @@ -417,6 +418,7 @@ void t37() { // CHECK: call void asm sideeffect inteldialect "mov eax, $$4294967172", "~{eax},~{dirflag},~{fpsr},~{flags}"() // CHECK: call void asm sideeffect inteldialect "mov eax, $$2", "~{eax},~{dirflag},~{fpsr},~{flags}"() // CHECK: call void asm sideeffect inteldialect "mov eax, $$4294967292", "~{eax},~{dirflag},~{fpsr},~{flags}"() +// CHECK: call void asm sideeffect inteldialect "mov eax, $$4294967280", "~{eax},~{dirflag},~{fpsr},~{flags}"() } void t38() { -- 2.7.4