[PATCH] D60728: [clang] [test] Add a (xfailing) test for PR41027
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 17 01:15:02 PDT 2019
mgorny updated this revision to Diff 195518.
mgorny added a comment.
Updated per request.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60728/new/
https://reviews.llvm.org/D60728
Files:
clang/test/Sema/pr41027.c
Index: clang/test/Sema/pr41027.c
===================================================================
--- /dev/null
+++ clang/test/Sema/pr41027.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -triple x86_64 -fsyntax-only %s
+// XFAIL: *
+
+inline void pr41027(unsigned a, unsigned b) {
+ if (__builtin_constant_p(a)) {
+ __asm__ volatile("outl %0,%w1" : : "a"(b), "n"(a));
+ } else {
+ __asm__ volatile("outl %0,%w1" : : "a"(b), "d"(a));
+ }
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60728.195518.patch
Type: text/x-patch
Size: 444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190417/f1ca4f7b/attachment.bin>
More information about the cfe-commits
mailing list