summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/arm-asm-warn.c
Commit message (Collapse)AuthorAgeFilesLines
* Add error checking to reject neon_vector_type attribute on targets without NEON.Amara Emerson2013-09-161-1/+1
| | | | | | Patch by Artyom Skrobov. llvm-svn: 190801
* Rephrase asm_mismatched_size_modifier diagnostic. <rdar://problem/14050339>Bob Wilson2013-06-041-4/+4
| | | | | | | | | | | | | | | | | The text of this diagnostic was unnecessarily specific to the current ARM implementation of validateConstraintModifier, and it gave a potentially confusing suggestion for fixing the problem. The ARM-specific issue is not a big deal since that is the only target that currently does any checking of asm operand modifiers, but until my change in 183172 it was still wrong for output operands in the way that it referred to the value being truncated when put into a register, since output operands are retrieved from the registers instead of being put into them. The bigger problem is that its suggestion to "use a modifier" is wrong and confusing in the case where a "q" modifier is incorrectly used with an "r" constraint. In that case, the solution might well be to remove the modifier or perhaps change the constraint. It's better to just leave the diagnostic message more generic. llvm-svn: 183209
* Do not report -Wasm-operand-widths for ARM output operands. <rdar://14050337>Bob Wilson2013-06-031-0/+1
| | | | | | | | | We're getting reports of this warning getting triggered in cases where it is not adding any value. There is no asm operand modifier that you can use to silence it, and there's really nothing wrong with having an LDRB, for example, with a "char" output. llvm-svn: 183172
* Don't emit a warning with an input/output parameter. We assume the user ↵Bill Wendling2012-11-301-0/+4
| | | | | | knows what they're doing here. llvm-svn: 169059
* Don't warn if the input size is less than the register size. Also don't warn ifBill Wendling2012-11-301-5/+14
| | | | | | | the output size is greater than the register size. No truncation occurs with those. Reword warning to make it clearer what's the problem is. llvm-svn: 169054
* Recommit Eric's code to validate ASM string's constraints and modifiers.Bill Wendling2012-10-251-0/+18
This code checks the ASM string to see if the output size is able to fit within the variable specified as the output. For instance, scalar-to-vector conversions may not really work. It's on by default, but can be turned off with a flag if you think you know what you're doing. This is placed under a flag ('-Wasm-operand-widths') and flag group ('-Wasm'). <rdar://problem/12284092> llvm-svn: 166737
OpenPOWER on IntegriCloud