[AArch64][SVE] Fix fptrunc store for fixed len vector
authorPeter Waller <peter.waller@arm.com>
Mon, 6 Dec 2021 17:12:55 +0000 (17:12 +0000)
committerPeter Waller <peter.waller@arm.com>
Tue, 7 Dec 2021 12:22:07 +0000 (12:22 +0000)
commited43aab98d52112f29e2a0204b85582096300bfe
tree0f45341ebefac6545f74aca42ec5da80830ec60a
parent2925f3c9ae1beb49ee37b745bbed2ad6ed3d8d27
[AArch64][SVE] Fix fptrunc store for fixed len vector

Restrict duplicate FP_EXTEND/FP_TRUNC -> LOAD/STORE DAG combines to only
larger than NEON types, as these are the ones for which there is custom
lowering.

Update tests so that they go through memory to improve validation.

Differential Revision: https://reviews.llvm.org/D115166
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-fixed-length-fp-extend-trunc.ll