Chad Rosier | e72faf6 | 2012-10-23 23:42:25 +0000 | [diff] [blame^] | 1 | // 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 | |||||
4 | void 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 | } |