blob: 6bf3e209d166b50bb22d93867479db14da984e06 [file] [log] [blame]
Chad Rosiere72faf62012-10-23 23:42:25 +00001// REQUIRES: x86-64-registered-target
2// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -O0 -fms-extensions -fenable-experimental-ms-inline-asm -w -emit-llvm -o - | FileCheck %s
3
4void t1() {
5 int var = 10;
6 __asm mov rax, offset var ; rax = address of myvar
7// CHECK: t1
8// CHECK: call void asm sideeffect inteldialect "mov rax, $0", "r,~{rax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
9}