[PATCH] D43125: [ARM] Don't print "Requires NEON" error message for M-profile

Andre Vieira via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 13 03:48:38 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL325000: [ARM] Don't print "Requires NEON" error message for M-profile (authored by avieira, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D43125?vs=133574&id=134020#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D43125

Files:
  llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  llvm/trunk/test/MC/ARM/vfp4.s


Index: llvm/trunk/test/MC/ARM/vfp4.s
===================================================================
--- llvm/trunk/test/MC/ARM/vfp4.s
+++ llvm/trunk/test/MC/ARM/vfp4.s
@@ -23,7 +23,7 @@
 
 @ ARM: vfma.f32 q2, q4, q0 @ encoding: [0x50,0x4c,0x08,0xf2]
 @ THUMB: vfma.f32	q2, q4, q0 @ encoding: [0x08,0xef,0x50,0x4c]
-@ THUMB_V7EM-ERRORS: error: instruction requires: NEON
+@ THUMB_V7EM-ERRORS: error: invalid instruction
 @ THUMB_V7EM-ERRORS-NEXT: vfma.f32 q2, q4, q0
 vfma.f32 q2, q4, q0
 
@@ -57,7 +57,7 @@
 
 @ ARM: vfms.f32 q2, q4, q0 @ encoding: [0x50,0x4c,0x28,0xf2]
 @ THUMB: vfms.f32	q2, q4, q0 @ encoding: [0x28,0xef,0x50,0x4c]
-@ THUMB_V7EM-ERRORS: error: instruction requires: NEON
+@ THUMB_V7EM-ERRORS: error: invalid instruction
 @ THUMB_V7EM-ERRORS-NEXT: vfms.f32 q2, q4, q0
 vfms.f32 q2, q4, q0
 
Index: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
===================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -10230,6 +10230,8 @@
       if (!isThumb() && (MissingFeatures & Feature_IsThumb2) &&
           (MissingFeatures & ~(Feature_IsThumb2 | Feature_IsThumb)))
         break;
+      if (isMClass() && (MissingFeatures & Feature_HasNEON))
+        break;
 
       NearMissMessage Message;
       Message.Loc = IDLoc;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43125.134020.patch
Type: text/x-patch
Size: 1372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180213/96f760a8/attachment.bin>


More information about the llvm-commits mailing list