[LLVMdev] Newbee question: LLVM backend regression tests for thumb1 targets on simulator possible?

Jonathan Roelofs
Tue, 16 Dec 2014 17:24:12 -0000

> To check that clang indeed only produces v6m instructions when
> telling it to target Cortex-m0, I think we could rely on LLVM's
> MC layer correctly modelling if an instruction is part of v6m or not,
> as our internal MC Hammer test suite[1] has finally, since about 1
> month ago, started passing completely for the v6m architecture.
> Potentially, just making sure that a build with assertions enabled
> would result in an assertion failure being triggered when a non-v6m
> instruction gets emitted could be good enough, as a starting point?
Yes. That would be better. Tim was musing about doing that the last time I ran
into the v4t lo->lo copy thing.

Jon

--
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded