Currently,
clang -target mipsisa64r6-linux-gnu -mabi=32
will generate a r2 32bit object instead expected r6 one.
The reason is that for some R6 triples, the ArchName and ArchTypeName are different:
ArchTypeName has only 4 choice: mips, mipsel, mips64, mips64el, ArchName may be something like mipsisa{32,64}r6{,el}
Shouldn't all others also preserve the subarch?