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

Bjoern Haase bjoern.m.haase at web.de
Tue Dec 16 09:48:24 PST 2014


Am 16.12.2014 18:24, schrieb Jonathan Roelofs:
>
>> 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
And as as a second level of security, one may rely on the checks 
implemented in gas.




More information about the llvm-dev mailing list