[PATCH] D60728: [clang] [test] Add a (xfailing) test for PR41027

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 01:19:52 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL362587: [clang] [test] Add a (xfailing) test for PR41027 (authored by mgorny, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D60728?vs=195518&id=203097#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60728/new/

https://reviews.llvm.org/D60728

Files:
  cfe/trunk/test/Sema/pr41027.c


Index: cfe/trunk/test/Sema/pr41027.c
===================================================================
--- cfe/trunk/test/Sema/pr41027.c
+++ cfe/trunk/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.203097.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190605/0a23a66f/attachment.bin>


More information about the llvm-commits mailing list