There are some duplicate test lines in clang/test/Driver/arm-cortex-cpus.c.
Looks like these were duplicated from the corresponding v8.0a tests, which test
both "-target armv8" and "-target armv8a". "-target armv8.X" without the "a"
doesn't work for later versions though.
Several tests also specify the -mlittle-endian twice, which looks unintentional.
I'm definitely ok with the half of changes in this patch that remove -mlittle-endian when it appears twice on one line.
The other half of the changes remove -mlittle-endian when it's not specified more than once. I suspect -mlittle-endian is implied by -target in this case; was the test validating that by being explicit about endianness? I guess I don't see how being explicit about the endianness could affect the -triple, which is what is being checked, so I guess this LGTM.