]> granicus.if.org Git - clang/commitdiff
ARM: fix VFP asm constraints
authorJF Bastien <jfb@google.com>
Fri, 19 Feb 2016 06:54:45 +0000 (06:54 +0000)
committerJF Bastien <jfb@google.com>
Fri, 19 Feb 2016 06:54:45 +0000 (06:54 +0000)
Summary:
Rich Felker was sad that clang used 'w' and 'P' for VFP constraints when GCC documents them as 't' and 'w':
  https://gcc.gnu.org/onlinedocs/gcc/Machine-Constraints.html

This was added way back in 2008:
  http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20080421/005393.html

Subscribers: aemerson, rengolin, cfe-commits

Differential Revision: http://reviews.llvm.org/D17349

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

lib/Basic/Targets.cpp

index aea14306c773bd7488ae01fbbbeccfe7e438f32e..65b98395f0e2274115e82e19d286e1dbd859cdb0 100644 (file)
@@ -4939,8 +4939,8 @@ public:
     default: break;
     case 'l': // r0-r7
     case 'h': // r8-r15
-    case 'w': // VFP Floating point register single precision
-    case 'P': // VFP Floating point register double precision
+    case 't': // VFP Floating point register single precision
+    case 'w': // VFP Floating point register double precision
       Info.setAllowsRegister();
       return true;
     case 'I':