[PATCH] D145436: add test case
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 6 14:57:19 PST 2023
nickdesaulniers created this revision.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145436
Files:
clang/test/CodeGen/inline-asm-p-constraint.c
Index: clang/test/CodeGen/inline-asm-p-constraint.c
===================================================================
--- clang/test/CodeGen/inline-asm-p-constraint.c
+++ clang/test/CodeGen/inline-asm-p-constraint.c
@@ -4,3 +4,12 @@
// CHECK: call void asm sideeffect "prfm pldl1keep, ${0:a}\0A", "r"(ptr %0)
// CHECK-NOT: call void asm sideeffect "prfm pldl1keep, ${0:a}\0A", "p"(ptr %0)
}
+
+int *current_task;
+long x;
+void bar (void) {
+ asm ("":"=r"(x):"p"(¤t_task));
+}
+// CHECK: %0 = call i64 asm "", "=r,r"(ptr @current_task) #[[ATTR:[0-9]+]]
+// FIXME: should be memory(read)
+// CHECK: attributes #[[ATTR]] = { nounwind memory(none) }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145436.502818.patch
Type: text/x-patch
Size: 667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230306/90fa2cbe/attachment.bin>
More information about the cfe-commits
mailing list