AArch64/ARM64: only mangle MOVZ/MOVN during encoding when needed
authorTim Northover <tnorthover@apple.com>
Tue, 15 Apr 2014 14:00:15 +0000 (14:00 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 15 Apr 2014 14:00:15 +0000 (14:00 +0000)
commit2a83cb71ad74988d834c8969ca34027fce251a12
treea9f56ef53a46b2da0504a8fade825a9fc633a4bc
parent5080ae2e21945f3f50a4a0440f833022ab3b15ba
AArch64/ARM64: only mangle MOVZ/MOVN during encoding when needed

Sometimes we need emit the bits that would actually be a MOVN when producing a
relocated MOVZ instruction (don't ask). But not always, a check which ARM64 got
wrong until now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206289 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM64/MCTargetDesc/ARM64MCCodeEmitter.cpp
test/CodeGen/AArch64/large-consts.ll
test/MC/ARM64/large-relocs.s