llvm.org GIT mirror llvm / df69147
[ARM] Expand v1i64 and v2i64 ctpop. The default is legal, which results in 'Cannot select' errors. This is triggered during selfhost due to a recent cost model change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265040 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 4 years ago
2 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
576576 setOperationAction(ISD::CTPOP, MVT::v4i32, Custom);
577577 setOperationAction(ISD::CTPOP, MVT::v4i16, Custom);
578578 setOperationAction(ISD::CTPOP, MVT::v8i16, Custom);
579 setOperationAction(ISD::CTPOP, MVT::v1i64, Expand);
580 setOperationAction(ISD::CTPOP, MVT::v2i64, Expand);
579581
580582 // NEON does not have single instruction CTTZ for vectors.
581583 setOperationAction(ISD::CTTZ, MVT::v8i8, Custom);
7070 ret <4 x i32> %tmp2
7171 }
7272
73 define <1 x i64> @vcnt64(<1 x i64>* %A) nounwind {
74 ; CHECK-LABEL: vcnt64:
75 %tmp1 = load <1 x i64>, <1 x i64>* %A
76 %tmp2 = call <1 x i64> @llvm.ctpop.v1i64(<1 x i64> %tmp1)
77 ret <1 x i64> %tmp2
78 }
79
80 define <2 x i64> @vcntQ64(<2 x i64>* %A) nounwind {
81 ; CHECK-LABEL: vcntQ64:
82 %tmp1 = load <2 x i64>, <2 x i64>* %A
83 %tmp2 = call <2 x i64> @llvm.ctpop.v2i64(<2 x i64> %tmp1)
84 ret <2 x i64> %tmp2
85 }
86
7387 declare <8 x i8> @llvm.ctpop.v8i8(<8 x i8>) nounwind readnone
7488 declare <16 x i8> @llvm.ctpop.v16i8(<16 x i8>) nounwind readnone
7589 declare <4 x i16> @llvm.ctpop.v4i16(<4 x i16>) nounwind readnone
7690 declare <8 x i16> @llvm.ctpop.v8i16(<8 x i16>) nounwind readnone
7791 declare <2 x i32> @llvm.ctpop.v2i32(<2 x i32>) nounwind readnone
7892 declare <4 x i32> @llvm.ctpop.v4i32(<4 x i32>) nounwind readnone
93 declare <1 x i64> @llvm.ctpop.v1i64(<1 x i64>) nounwind readnone
94 declare <2 x i64> @llvm.ctpop.v2i64(<2 x i64>) nounwind readnone
7995
8096 define <8 x i8> @vclz8(<8 x i8>* %A) nounwind {
8197 ;CHECK-LABEL: vclz8: