This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Don't omit non-default predication code
ClosedPublic

Authored by olista01 on Oct 23 2017, 9:58 AM.

Details

Summary

This was causing the (invalid) predicated versions of the NEON VRINTX and VRINTZ instructions to be accepted, with the condition code being ignored.

Also, there is no NEON VRINTR instruction, so that part of the check was not necessary.

Diff Detail

Repository
rL LLVM

Event Timeline

olista01 created this revision.Oct 23 2017, 9:58 AM
rengolin added inline comments.Nov 21 2017, 5:18 AM
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
5807

update comment?

test/MC/ARM/invalid-neon-v8.s
76

do we have tests for when it's valid? for all three R,X,Z variants?

olista01 added inline comments.Nov 21 2017, 7:25 AM
test/MC/ARM/invalid-neon-v8.s
76

Yes, there are tests for the conditional and unconditional VFP versions in test/MC/ARM/fp-armv8.s and test/MC/ARM/thumb-fp-armv8.s, and the unconditional NEON case in test/MC/ARM/neon-v8.s.

rengolin accepted this revision.Nov 21 2017, 7:28 AM

Ok, with the updated comment, LGTM. Thanks!

This revision is now accepted and ready to land.Nov 21 2017, 7:28 AM
olista01 updated this revision to Diff 123793.Nov 21 2017, 7:28 AM

Fix comment.

This revision was automatically updated to reflect the committed changes.