[PATCH] D83947: [ARM] halfword store hits llvm_unreachable with big-endian
Simon Wallis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 00:58:26 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3e0ccf9a9075: [ARM] halfword store hits llvm_unreachable with big-endian (authored by simonwallis2).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83947/new/
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.278673.patch
Type: text/x-patch
Size: 1149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200717/6f223507/attachment.bin>
More information about the llvm-commits
mailing list