Skip to content

Commit 728b37d

Browse files
[DAG] Fold trunc(avg(x,y)) for avgceil/floor u/s nodes if they have sufficient leading zero/sign bits-6
1 parent 08138a2 commit 728b37d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/CodeGen/AArch64/trunc-avg-fold.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ define <8 x i8> @test_avgfloor_s(<8 x i16> %a, <8 x i16> %b) {
8585
ret <8 x i8> %res
8686
}
8787

88-
declare <8 x i8> @llvm.aarch64.neon.uhadd.v8i8(<8 x i8>, <8 x i8>)
89-
declare <8 x i8> @llvm.aarch64.neon.shadd.v8i8(<8 x i8>, <8 x i8>)
88+
declare <8 x i16> @llvm.aarch64.neon.uhadd.v8i16(<8 x i16>, <8 x i16>)
89+
declare <8 x i16> @llvm.aarch64.neon.shadd.v8i16(<8 x i16>, <8 x i16>)
9090
declare <8 x i16> @llvm.smin.v8i16(<8 x i16>, <8 x i16>)
9191
declare <8 x i16> @llvm.smax.v8i16(<8 x i16>, <8 x i16>)
9292

0 commit comments

Comments
 (0)