You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llvm/test/CodeGen/AArch64/sve2-bsl.ll
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,3 +41,18 @@ define <vscale x 4 x i32> @no_bsl_fold(<vscale x 4 x i32> %a, <vscale x 4 x i32>
41
41
%c = or <vscale x 4 x i32> %1, %2
42
42
ret <vscale x 4 x i32> %c
43
43
}
44
+
45
+
define <vscale x 4 x i32> @nbsl(<vscale x 4 x i32> %a, <vscale x 4 x i32> %b) {
46
+
; CHECK-LABEL: nbsl:
47
+
; CHECK: // %bb.0:
48
+
; CHECK-NEXT: mov z2.s, #0x7fffffff
49
+
; CHECK-NEXT: nbsl z2.d, z2.d, z0.d, z1.d
50
+
; CHECK-NEXT: mov z0.d, z2.d
51
+
; CHECK-NEXT: ret
52
+
%1 = and <vscale x 4 x i32> %a, shufflevector (<vscale x 4 x i32> insertelement (<vscale x 4 x i32> poison, i322147483647, i640), <vscale x 4 x i32> poison, <vscale x 4 x i32> zeroinitializer)
53
+
%2 = and <vscale x 4 x i32> %b, shufflevector (<vscale x 4 x i32> insertelement (<vscale x 4 x i32> poison, i32 -2147483648, i640), <vscale x 4 x i32> poison, <vscale x 4 x i32> zeroinitializer)
54
+
%3 = or <vscale x 4 x i32> %1, %2
55
+
%4 = icmpeq <vscale x 4 x i32> %3, zeroinitializer
56
+
%5 = zext <vscale x 4 x i1> %4to <vscale x 4 x i32>
0 commit comments