This is an archive of the discontinued LLVM Phabricator instance.

[Arm][MC] Remove unused prefixes in .arch_extension fp tests
ClosedPublic

Authored by DavidSpickett on Nov 6 2020, 2:23 AM.

Details

Summary

idiv: There is no difference between Armv7m and Thumbv7M
behaviour so the specific CHECKs are not needed.
The errors for Armv7-a and Thumbv7-a will always
include "ARM" or "THUMB" respectively so they need their
own CHECK prefix, making CHECK-V7 redundant.

mp: Behaviour is dependent on whether the triple is v6/v7/v7M
regardless of being Arm or Thumb. So we don't need the more
specific CHECK-ARMv7M etc.

simd: Errors are either v7 only, or v7 and v8 so CHECK-V8
is not needed.

fp: Same as simd

Diff Detail

Event Timeline

DavidSpickett created this revision.Nov 6 2020, 2:23 AM
DavidSpickett requested review of this revision.Nov 6 2020, 2:23 AM
DavidSpickett added a reviewer: ostannard.EditedNov 6 2020, 2:25 AM

I suspect the other directive-arch_extension-*.s might have the same thing so I'll update this if that's the case.

Edit: it is, will update with the rest.

  • Remove unused prefixes from idiv, simd and mp tests as well.

We could remove --check-prefix CHECK since it's implicit
but I think it helps comprehension a bit here.

DavidSpickett retitled this revision from [Arm][MC] Remove unused prefix in .arch_extension fp test to [Arm][MC] Remove unused prefixes in .arch_extension fp tests.Nov 6 2020, 6:16 AM
DavidSpickett edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Nov 6 2020, 6:28 AM
This revision was landed with ongoing or failed builds.Nov 6 2020, 7:13 AM
This revision was automatically updated to reflect the committed changes.