llvm-6502/test
Kevin Enderby 1a47d66496 Change the ARM assembler to require a :lower16: or :upper16 on non-constant
expressions for mov instructions instead of silently truncating by default.

For the ARM assembler, we want to avoid misleadingly allowing something
like "mov r0, <symbol>" especially when we turn it into a movw and the
expression <symbol> does not have a :lower16: or :upper16" as part of the
expression.  We don't want the behavior of silently truncating, which can be
unexpected and lead to bugs that are difficult to find since this is an easy
mistake to make.

This does change the previous behavior of llvm but actually matches an
older gnu assembler that would not allow this but print less useful errors
of like “invalid constant (0x927c0) after fixup” and “unsupported relocation on
symbol foo”.  The error for llvm is "immediate expression for mov requires
:lower16: or :upper16" with correct location information on the operand
as shown in the added test cases.

rdar://12342160


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206669 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-18 23:06:39 +00:00
..
Analysis Reapply "blockfreq: Rewrite BlockFrequencyInfoImpl" (#2) 2014-04-18 22:30:03 +00:00
Assembler
Bindings
Bitcode AsmParser: add a warning for compatibility parsing 2014-04-05 22:42:53 +00:00
BugPoint
CodeGen Reapply "blockfreq: Rewrite BlockFrequencyInfoImpl" (#2) 2014-04-18 22:30:03 +00:00
DebugInfo [llvm-symbolizer] Print file/line for a PC even if there is no DIE describing it. 2014-04-18 22:22:44 +00:00
ExecutionEngine
Feature Disable each MachineFunctionPass for 'optnone' functions, unless that 2014-03-31 17:43:35 +00:00
FileCheck
Instrumentation [msan] Add -msan-instrumentation-with-call-threshold. 2014-04-18 12:17:20 +00:00
Integer
JitListener
Linker
LTO This patch fixes LTO's RecordStreamer so that it records symbols in the MCExpr 2014-03-31 16:59:13 +00:00
MC Change the ARM assembler to require a :lower16: or :upper16 on non-constant 2014-04-18 23:06:39 +00:00
Object [yaml2obj][ELF] ELF Relocations Support. 2014-04-11 04:13:39 +00:00
Other Add -pass-remarks flag to 'opt'. 2014-04-08 16:42:38 +00:00
TableGen
tools test: Add extra run lines to investigate an error on the bots 2014-04-18 23:05:31 +00:00
Transforms Add missing config file for newly added test case introduced by r206563. 2014-04-18 09:05:50 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg ARM: update even more tests 2014-04-03 17:35:22 +00:00
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh