[cfe-commits] r166527 - /cfe/trunk/test/CodeGen/ms-inline-asm-64.c

Chad Rosier mcrosier at apple.com
Tue Oct 23 16:42:25 PDT 2012


Author: mcrosier
Date: Tue Oct 23 18:42:25 2012
New Revision: 166527

URL: http://llvm.org/viewvc/llvm-project?rev=166527&view=rev
Log:
[ms-inline asm] Test case for r166526.

Added:
    cfe/trunk/test/CodeGen/ms-inline-asm-64.c

Added: cfe/trunk/test/CodeGen/ms-inline-asm-64.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ms-inline-asm-64.c?rev=166527&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm-64.c (added)
+++ cfe/trunk/test/CodeGen/ms-inline-asm-64.c Tue Oct 23 18:42:25 2012
@@ -0,0 +1,9 @@
+// REQUIRES: x86-64-registered-target
+// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -O0 -fms-extensions -fenable-experimental-ms-inline-asm -w -emit-llvm -o - | FileCheck %s
+
+void t1() {
+  int var = 10;
+  __asm mov rax, offset var ; rax = address of myvar
+// CHECK: t1
+// CHECK: call void asm sideeffect inteldialect "mov rax, $0", "r,~{rax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
+}





More information about the cfe-commits mailing list