]> granicus.if.org Git - clang/commitdiff
Back out r72764; I should have looked more carefully before committing
authorEli Friedman <eli.friedman@gmail.com>
Wed, 3 Jun 2009 10:41:42 +0000 (10:41 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 3 Jun 2009 10:41:42 +0000 (10:41 +0000)
this.  The correct replacement for "Y" and "Yt" is "x".

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72765 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp
test/Sema/asm-x86.c [deleted file]

index cdb7e0805608182eaad4470ca6c842589fa6b732..4b94bcfc432c67845f467d2e2570c6be84cbb0d2 100644 (file)
@@ -754,13 +754,6 @@ X86TargetInfo::validateAsmConstraint(const char *&Name,
             // instructions.
     Info.setAllowsRegister();
     return true;
-  case 'Y':
-    ++Name;
-    if (*Name == 't') {
-      Info.setAllowsRegister();
-      return true;
-    }
-    return false;
   }
 }
 
diff --git a/test/Sema/asm-x86.c b/test/Sema/asm-x86.c
deleted file mode 100644 (file)
index d8fe380..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// RUN: clang-cc %s -triple i386-pc-linux-gnu -target-feature=+sse2 -verify -fsyntax-only
-
-// PR3678
-int test8() {
-  asm("%0" : : "Yt"(1.0));
-  asm("%0" : : "Yy"(1.0)); // expected-error {{invalid input constraint 'Yy' in asm}}
-}