]> granicus.if.org Git - llvm/commit
[ARM GlobalISel] Fix G_STORE with s1
authorDiana Picus <diana.picus@linaro.org>
Thu, 28 Mar 2019 09:09:36 +0000 (09:09 +0000)
committerDiana Picus <diana.picus@linaro.org>
Thu, 28 Mar 2019 09:09:36 +0000 (09:09 +0000)
commitb94dc88e01c4ae440e3cafd70b1edcfbd07dcb97
tree6bc34fd7d6664d7856bf388946d12059eae94497
parent51a43ae6d59739169aa73f4be2e66462848f5452
[ARM GlobalISel] Fix G_STORE with s1

G_STORE for 1-bit values uses a STRBi12, which stores the whole byte.
Zero out the undefined bits before writing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357154 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstructionSelector.cpp
test/CodeGen/ARM/GlobalISel/arm-instruction-select.mir
test/CodeGen/ARM/GlobalISel/thumb-select-load-store.mir