Skip to content

Commit

Permalink
ARM: fix VFP asm constraints
Browse files Browse the repository at this point in the history
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

llvm-svn: 261309
  • Loading branch information
jfbastien committed Feb 19, 2016
1 parent 693f131 commit 750caef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/Basic/Targets.cpp
Expand Up @@ -4939,8 +4939,8 @@ class ARMTargetInfo : public TargetInfo {
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':
Expand Down

0 comments on commit 750caef

Please sign in to comment.