[llvm] r207110 - ARM64: support relocated "TBZ/TBNZ" instructions.
Tim Northover
tnorthover at apple.com
Thu Apr 24 05:56:34 PDT 2014
Author: tnorthover
Date: Thu Apr 24 07:56:34 2014
New Revision: 207110
URL: http://llvm.org/viewvc/llvm-project?rev=207110&view=rev
Log:
ARM64: support relocated "TBZ/TBNZ" instructions.
Modified:
llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64ELFObjectWriter.cpp
llvm/trunk/test/MC/AArch64/elf-reloc-tstb.s
Modified: llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64ELFObjectWriter.cpp?rev=207110&r1=207109&r2=207110&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64ELFObjectWriter.cpp Thu Apr 24 07:56:34 2014
@@ -87,6 +87,8 @@ unsigned ARM64ELFObjectWriter::GetRelocT
if (SymLoc == ARM64MCExpr::VK_GOTTPREL)
return ELF::R_AARCH64_TLSIE_LD_GOTTPREL_PREL19;
return ELF::R_AARCH64_LD_PREL_LO19;
+ case ARM64::fixup_arm64_pcrel_branch14:
+ return ELF::R_AARCH64_TSTBR14;
case ARM64::fixup_arm64_pcrel_branch19:
return ELF::R_AARCH64_CONDBR19;
default:
Modified: llvm/trunk/test/MC/AArch64/elf-reloc-tstb.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AArch64/elf-reloc-tstb.s?rev=207110&r1=207109&r2=207110&view=diff
==============================================================================
--- llvm/trunk/test/MC/AArch64/elf-reloc-tstb.s (original)
+++ llvm/trunk/test/MC/AArch64/elf-reloc-tstb.s Thu Apr 24 07:56:34 2014
@@ -1,6 +1,9 @@
// RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \
// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s
+// RUN: llvm-mc -triple=arm64-none-linux-gnu -filetype=obj %s -o - | \
+// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s
+
tbz x6, #45, somewhere
tbnz w3, #15, somewhere
More information about the llvm-commits
mailing list