Commit graph

4 commits

Author SHA1 Message Date
Johan Engelen
e50f15af7f Tests: use -mtriple= instead of without equals sign. 2016-05-27 23:49:56 +02:00
Johan Engelen
91d308fa00 Apply "unsafe-fp-math"="false" per default on all functions.
This is needed because of: see comment in applyDefaultMathAttributes.
2016-05-22 19:56:57 +02:00
Johan Engelen
7b8f5d375e [LIT] Add features for the targets that LLVM can target.
Examples: target_X86, target_ARM.
Apart from future need, this is currently needed for a few tests that specifically test X86 capabilities.
2016-05-11 23:08:27 +02:00
Johan Engelen
9955d8e4e4 For LDC_inline_ir functions: instantiate a new "alwaysinline" function for each call, which is the current behavior for inline ASM too.
When certain attributes are applied to the calling function, like "unsafe-fp-math", the inlined inlineIR function has to have the same attributes otherwise the calling function attribute will be reset to the safe merge of the two: "false". Because the same inlineIR function can be called in different functions using an alias definition, a new function (with possibly different attributes) has to be instantiated upon every call.

Related GH issue #1438
2016-04-21 10:16:33 +02:00