[PowerPC] Fix store-fptoi combine of f128 on Power8
authorQiu Chaofan <qiucofan@cn.ibm.com>
Thu, 17 Sep 2020 02:19:09 +0000 (10:19 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Thu, 17 Sep 2020 02:21:35 +0000 (10:21 +0800)
commitebfbdebe9678f4a42ec35396eb517eefd85d2b4c
tree3ef3e3c32aea9b1f245c3c211bcddb6a27f44959
parent5782ab0f52db1b1914d8ee5fe3828b0a5de9d685
[PowerPC] Fix store-fptoi combine of f128 on Power8

llc would crash for (store (fptosi-f128-i32)) when -mcpu=pwr8, we should
not generate FP_TO_(S|U)INT_IN_VSR for f128 types at this time. This
patch fixes it.

Reviewed By: steven.zhang

Differential Revision: https://reviews.llvm.org/D86686
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/store_fptoi.ll