Fix a latent bug exposed by my truncstore patch. We compiled stfiwx-2.ll to:
authorChris Lattner <sabre@nondot.org>
Fri, 18 Jan 2008 16:54:56 +0000 (16:54 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 18 Jan 2008 16:54:56 +0000 (16:54 +0000)
commita7a02fb828382afffd51596ee63822aa141a7147
tree2e6d1f71fb242e2179dd11ae9efee9371a4309b0
parent3d66185ff8b276183fa8e9ce3d7ebb1d9ce88f74
Fix a latent bug exposed by my truncstore patch.  We compiled stfiwx-2.ll to:

_test:
fctiwz f0, f1
stfiwx f0, 0, r4
blr

instead of:

_test:
fctiwz f0, f1
stfd f0, -8(r1)
nop
nop
lwz r2, -4(r1)
stb r2, 0(r4)
blr

The former is not correct (stores 4 bytes, not 1).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46161 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/stfiwx-2.ll [new file with mode: 0644]