Skip to content

Commit 32041fb

Browse files
[DAG] Fold trunc(avg(x,y)) for avgceil/floor u/s nodes if they have sufficient leading zero/sign bits-9
1 parent 2d268fc commit 32041fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ define <8 x i8> @test_avgceil_s(<8 x i8> %a, <8 x i8> %b) {
2626
ret <8 x i8> %res
2727
}
2828

29-
define <8 x i8> @avgfloor_u_from_intrin(<8 x i8> %a, <8 x i8> %b) {
29+
define <8 x i8> @avgfloor_u_i8_to_i16(<8 x i8> %a, <8 x i8> %b) {
3030
; CHECK-LABEL: avgfloor_u_from_intrin:
3131
; CHECK: // %bb.0:
3232
; CHECK-NEXT: uhadd v0.8b, v0.8b, v1.8b

0 commit comments

Comments
 (0)