r218271 - ms-inline-asm: Add a test case for the usage of labels in bracket expressions
Ehsan Akhgari
ehsan.akhgari at gmail.com
Mon Sep 22 13:41:39 PDT 2014
Author: ehsan
Date: Mon Sep 22 15:41:39 2014
New Revision: 218271
URL: http://llvm.org/viewvc/llvm-project?rev=218271&view=rev
Log:
ms-inline-asm: Add a test case for the usage of labels in bracket expressions
Summary: This is a test for this patch: http://reviews.llvm.org/D5445.
Reviewers: rnk
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D5446
Modified:
cfe/trunk/test/CodeGen/ms-inline-asm.c
Modified: cfe/trunk/test/CodeGen/ms-inline-asm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ms-inline-asm.c?rev=218271&r1=218270&r2=218271&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Mon Sep 22 15:41:39 2014
@@ -544,3 +544,12 @@ void label3() {
// CHECK-LABEL: define void @label3
// CHECK: call void asm sideeffect inteldialect "{{.*}}__MSASMLABEL_.3__label:\0A\09mov eax, {{.*}}__MSASMLABEL_.3__label", "~{eax},~{dirflag},~{fpsr},~{flags}"()
}
+
+void label4() {
+ __asm {
+ label:
+ mov eax, [label]
+ }
+ // CHECK-LABEL: define void @label4
+ // CHECK: call void asm sideeffect inteldialect "{{.*}}__MSASMLABEL_.4__label:\0A\09mov eax, {{.*}}__MSASMLABEL_.4__label", "~{eax},~{dirflag},~{fpsr},~{flags}"()
+}
More information about the cfe-commits
mailing list