[PATCH] D83947: [ARM] halfword store hits llvm_unreachable with big-endian
Simon Wallis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 16 06:24:40 PDT 2020
simonwallis2 created this revision.
simonwallis2 added a reviewer: olista01.
Herald added subscribers: llvm-commits, danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
[ARM] halfword store hits llvm_unreachable with big-endian
Provide missing case in getFixupKindContainerSizeBytes().
This stops execution reaching llvm_unreachable("Unknown fixup kind!")
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83947
Files:
llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
llvm/test/CodeGen/ARM/store_half.ll
Index: llvm/test/CodeGen/ARM/store_half.ll
===================================================================
--- /dev/null
+++ llvm/test/CodeGen/ARM/store_half.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -mtriple=thumbebv8.2a-arm-none-eabi -mattr=+fullfp16 -filetype=obj -o /dev/null
+; RUN: llc < %s -mtriple=thumbv8.2a-arm-none-eabi -mattr=+fullfp16 -filetype=obj -o /dev/null
+; RUN: llc < %s -mtriple=armebv8.2a-arm-none-eabi -mattr=+fullfp16 -filetype=obj -o /dev/null
+; RUN: llc < %s -mtriple=armv8.2a-arm-none-eabi -mattr=+fullfp16 -filetype=obj -o /dev/null
+
+define void @woah(half* %waythere) {
+ store half 0xHE110, half* %waythere
+ ret void
+}
Index: llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
===================================================================
--- llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
+++ llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
@@ -1010,6 +1010,7 @@
case ARM::fixup_t2_condbranch:
case ARM::fixup_t2_uncondbranch:
case ARM::fixup_t2_pcrel_10:
+ case ARM::fixup_t2_pcrel_9:
case ARM::fixup_t2_adr_pcrel_12:
case ARM::fixup_arm_thumb_bl:
case ARM::fixup_arm_thumb_blx:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83947.278451.patch
Type: text/x-patch
Size: 1149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200716/1ee0639f/attachment.bin>
More information about the llvm-commits
mailing list