[ARM] halfword store hits llvm_unreachable with big-endian
authorSimon Wallis <simon.wallis2@arm.com>
Fri, 17 Jul 2020 07:26:30 +0000 (08:26 +0100)
committerSimon Wallis <simon.wallis2@arm.com>
Fri, 17 Jul 2020 07:56:44 +0000 (08:56 +0100)
commit3e0ccf9a9075a3c6eb1d6cb750c77eb71167c2e4
treeb23a33e4208d88ec2caa3634b1433411ae6b1c93
parent1b7c9eae6dcad09c264e29e41a69bed0d34c2f5f
[ARM] halfword store hits llvm_unreachable with big-endian

Summary:
[ARM] halfword store hits llvm_unreachable with big-endian

Provide missing case in getFixupKindContainerSizeBytes().

This stops execution reaching llvm_unreachable("Unknown fixup kind!")

D83947

Reviewers: olista01, ostannard

Reviewed By: ostannard

Subscribers: ostannard, kristof.beyls, hiraditya, danielkiss, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D83947

Change-Id: I598aa1fb51fd1c6f424c557c85d6df6d1958bc62
llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
llvm/test/CodeGen/ARM/store_half.ll [new file with mode: 0644]