Add a test case for the tilde operator in Microsoft inline assembly
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Sat, 5 Jul 2014 15:04:06 +0000 (15:04 +0000)
committerEhsan Akhgari <ehsan.akhgari@gmail.com>
Sat, 5 Jul 2014 15:04:06 +0000 (15:04 +0000)
llvm-svn: 212373

clang/test/CodeGen/ms-inline-asm.c

index 6395e42..3836ddd 100644 (file)
@@ -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() {