[PATCH] Add a test case for the tilde operator in Microsoft inline assembly

Ehsan Akhgari ehsan.akhgari at gmail.com
Sat Jul 5 10:14:09 PDT 2014


Hi majnemer,

http://reviews.llvm.org/D4398

Files:
  test/MC/X86/x86-32-ms-inline-asm.s

Index: test/MC/X86/x86-32-ms-inline-asm.s
===================================================================
--- test/MC/X86/x86-32-ms-inline-asm.s
+++ test/MC/X86/x86-32-ms-inline-asm.s
@@ -73,6 +73,10 @@
 // CHECK: movl 16(%esi,%eax,2), %eax
 // CHECK: # encoding: [0x8b,0x44,0x46,0x10]
 
+	mov eax, ~15
+// CHECK: movl ~15, %eax
+// CHECK: # encoding: [0xa1,A,A,A,A]
+
     prefetchnta 64[eax]
 // CHECK: prefetchnta 64(%eax)
 // CHECK: # encoding: [0x0f,0x18,0x40,0x40]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4398.11100.patch
Type: text/x-patch
Size: 475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140705/c87f97ca/attachment.bin>


More information about the llvm-commits mailing list