This is an archive of the discontinued LLVM Phabricator instance.

[mips][mips64r6] Improve tests affected by the changes to multiplies and divides
ClosedPublic

Authored by dsanders on May 23 2014, 5:59 AM.

Details

Summary

MIPS32r6/MIPS64r6 support has not been added yet.

inlineasm-cnstrnt-reg.ll:

Explicitly specify the CPU since it will not work on MIPS32r6/MIPS64r6
when -integrated-as is the default. We can't change the mnemonic since the
LO register is an implicit def of mtlo and MIPS32r6/MIPS64r6 has no
instructions that use LO.

2008-08-01-AsmInline.ll:

Explicitly specify the CPU since MIPS32r6/MIPS64r6 will correctly emit
different code and this is a regression test.

mips64instrs.ll and mips64muldiv.ll

Check registers and the way the multiply is used in m1

divrem.ll

Check registers and use multiple filecheck prefixes to limit redundancy

Diff Detail

Event Timeline

dsanders updated this revision to Diff 9753.May 23 2014, 5:59 AM
dsanders retitled this revision from to [mips][mips64r6] Improve tests affected by the changes to multiplies and divides.
dsanders updated this object.
dsanders edited the test plan for this revision. (Show Details)
dsanders updated this revision to Diff 10226.Jun 9 2014, 2:31 AM

Refresh patch and ping

matheusalmeida accepted this revision.Jun 11 2014, 4:38 AM
matheusalmeida added a reviewer: matheusalmeida.
matheusalmeida added a subscriber: matheusalmeida.

LGTM.

test/CodeGen/Mips/mips64muldiv.ll
30–63

Don't we have tests for these instructions already in mips64instrs.ll ?

This revision is now accepted and ready to land.Jun 11 2014, 4:38 AM

Thanks

test/CodeGen/Mips/mips64muldiv.ll
30–63

Yes. We seem to have duplicate tests in other places too (as well as some missing tests such as ctlz for i32). I'm hoping to better organize our codegen tests at some point so that it's easy to tell what's covered and where and fill in the gaps.

dsanders closed this revision.Jun 11 2014, 8:55 AM