[mips] Test that IAS for -mcpu=mips5 does not accept MIPS64 insns and -mcpu=mips...
authorDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 14 May 2014 15:35:03 +0000 (15:35 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 14 May 2014 15:35:03 +0000 (15:35 +0000)
commitf6741d6bddcba58a602c653d789c508b712ab6c8
treee8e9b1bcef8acdf3ef9ac37deda0dde77b76f87a
parent7214d26b7ca51e52ef655ba9ba7a499c587fb0d6
[mips] Test that IAS for -mcpu=mips5 does not accept MIPS64 insns and -mcpu=mips(5|64) does not accept MIPS64r2

Summary:
To limit the number of tests required, only one 64-bit ISA prior to MIPS64 are tested.

rdhwr has been deliberately left without an ISA annotation for now. This is
because the assembler and CodeGen disagree on when the instruction is
available. Strictly speaking, it is only available in MIPS32r2 and
MIPS64r2. However, it is emulated by a kernel trap on earlier ISA's and is
necessary for TLS so CodeGen should emit it on older ISA's too.

Depends on D3697

Reviewers: vmedic

Reviewed By: vmedic

Differential Revision: http://reviews.llvm.org/D3698

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208785 91177308-0d34-0410-b5e6-96231b3b80d8
test/MC/Mips/mips5/invalid-mips64.s [new file with mode: 0644]
test/MC/Mips/mips5/invalid-mips64r2-xfail.s [new file with mode: 0644]
test/MC/Mips/mips5/invalid-mips64r2.s [new file with mode: 0644]
test/MC/Mips/mips64/invalid-mips64r2.s