[llvm] 5fa185b - [AArch64][NFC] Add test case for setcc (iN bitcast (vNi1 X)), (iN 0), (eq|ne)

Cullen Rhodes via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 05:14:48 PDT 2022


Author: Cullen Rhodes
Date: 2022-07-25T12:14:33Z
New Revision: 5fa185bc73d7e2151aaffa0b42da2114e998cc2c

URL: https://github.com/llvm/llvm-project/commit/5fa185bc73d7e2151aaffa0b42da2114e998cc2c
DIFF: https://github.com/llvm/llvm-project/commit/5fa185bc73d7e2151aaffa0b42da2114e998cc2c.diff

LOG: [AArch64][NFC] Add test case for setcc (iN bitcast (vNi1 X)), (iN 0), (eq|ne)

To be combined to 'setcc (iN (zext (i1 (vecreduce_or (vNi1 X))))), 0, (eq|ne)'
in follow on patch.

Reviewed By: peterwaller-arm

Differential Revision: https://reviews.llvm.org/D130162

Added: 
    llvm/test/CodeGen/AArch64/dag-combine-setcc.ll

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AArch64/dag-combine-setcc.ll b/llvm/test/CodeGen/AArch64/dag-combine-setcc.ll
new file mode 100644
index 0000000000000..7c5058263b675
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/dag-combine-setcc.ll
@@ -0,0 +1,834 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=aarch64-none-linux-gnu -mattr=+neon | FileCheck %s
+
+define i1 @combine_setcc_eq_vecreduce_or_v8i1(<8 x i8> %a) {
+; CHECK-LABEL: combine_setcc_eq_vecreduce_or_v8i1:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    sub sp, sp, #16
+; CHECK-NEXT:    .cfi_def_cfa_offset 16
+; CHECK-NEXT:    cmeq v0.8b, v0.8b, #0
+; CHECK-NEXT:    umov w8, v0.b[1]
+; CHECK-NEXT:    umov w10, v0.b[2]
+; CHECK-NEXT:    umov w9, v0.b[0]
+; CHECK-NEXT:    umov w11, v0.b[3]
+; CHECK-NEXT:    umov w12, v0.b[4]
+; CHECK-NEXT:    umov w13, v0.b[5]
+; CHECK-NEXT:    umov w14, v0.b[6]
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    bfi w9, w8, #1, #1
+; CHECK-NEXT:    and w8, w12, #0x1
+; CHECK-NEXT:    bfi w9, w10, #2, #1
+; CHECK-NEXT:    and w10, w13, #0x1
+; CHECK-NEXT:    bfi w9, w11, #3, #1
+; CHECK-NEXT:    umov w11, v0.b[7]
+; CHECK-NEXT:    bfi w9, w8, #4, #1
+; CHECK-NEXT:    and w8, w14, #0x1
+; CHECK-NEXT:    bfi w9, w10, #5, #1
+; CHECK-NEXT:    orr w8, w9, w8, lsl #6
+; CHECK-NEXT:    orr w8, w8, w11, lsl #7
+; CHECK-NEXT:    tst w8, #0xff
+; CHECK-NEXT:    cset w0, eq
+; CHECK-NEXT:    add sp, sp, #16
+; CHECK-NEXT:    ret
+  %cmp1 = icmp eq <8 x i8> %a, zeroinitializer
+  %cast = bitcast <8 x i1> %cmp1 to i8
+  %cmp2 = icmp eq i8 %cast, zeroinitializer
+  ret i1 %cmp2
+}
+
+define i1 @combine_setcc_eq_vecreduce_or_v16i1(<16 x i8> %a) {
+; CHECK-LABEL: combine_setcc_eq_vecreduce_or_v16i1:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    sub sp, sp, #16
+; CHECK-NEXT:    .cfi_def_cfa_offset 16
+; CHECK-NEXT:    cmeq v0.16b, v0.16b, #0
+; CHECK-NEXT:    umov w8, v0.b[1]
+; CHECK-NEXT:    umov w10, v0.b[2]
+; CHECK-NEXT:    umov w9, v0.b[0]
+; CHECK-NEXT:    umov w11, v0.b[3]
+; CHECK-NEXT:    umov w12, v0.b[4]
+; CHECK-NEXT:    umov w13, v0.b[5]
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    bfi w9, w8, #1, #1
+; CHECK-NEXT:    umov w8, v0.b[6]
+; CHECK-NEXT:    bfi w9, w10, #2, #1
+; CHECK-NEXT:    umov w10, v0.b[7]
+; CHECK-NEXT:    bfi w9, w11, #3, #1
+; CHECK-NEXT:    umov w11, v0.b[8]
+; CHECK-NEXT:    bfi w9, w12, #4, #1
+; CHECK-NEXT:    umov w12, v0.b[9]
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    bfi w9, w13, #5, #1
+; CHECK-NEXT:    umov w13, v0.b[10]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    orr w8, w9, w8, lsl #6
+; CHECK-NEXT:    umov w9, v0.b[11]
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    orr w8, w8, w10, lsl #7
+; CHECK-NEXT:    umov w10, v0.b[12]
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    orr w8, w8, w11, lsl #8
+; CHECK-NEXT:    umov w11, v0.b[13]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    orr w8, w8, w12, lsl #9
+; CHECK-NEXT:    umov w12, v0.b[14]
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    orr w8, w8, w13, lsl #10
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    orr w8, w8, w9, lsl #11
+; CHECK-NEXT:    and w9, w11, #0x1
+; CHECK-NEXT:    umov w11, v0.b[15]
+; CHECK-NEXT:    orr w8, w8, w10, lsl #12
+; CHECK-NEXT:    and w10, w12, #0x1
+; CHECK-NEXT:    orr w8, w8, w9, lsl #13
+; CHECK-NEXT:    orr w8, w8, w10, lsl #14
+; CHECK-NEXT:    orr w8, w8, w11, lsl #15
+; CHECK-NEXT:    tst w8, #0xffff
+; CHECK-NEXT:    cset w0, eq
+; CHECK-NEXT:    add sp, sp, #16
+; CHECK-NEXT:    ret
+  %cmp1 = icmp eq <16 x i8> %a, zeroinitializer
+  %cast = bitcast <16 x i1> %cmp1 to i16
+  %cmp2 = icmp eq i16 %cast, zeroinitializer
+  ret i1 %cmp2
+}
+
+define i1 @combine_setcc_eq_vecreduce_or_v32i1(<32 x i8> %a) {
+; CHECK-LABEL: combine_setcc_eq_vecreduce_or_v32i1:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    sub sp, sp, #16
+; CHECK-NEXT:    .cfi_def_cfa_offset 16
+; CHECK-NEXT:    cmeq v1.16b, v1.16b, #0
+; CHECK-NEXT:    cmeq v0.16b, v0.16b, #0
+; CHECK-NEXT:    umov w8, v1.b[1]
+; CHECK-NEXT:    umov w10, v1.b[2]
+; CHECK-NEXT:    umov w9, v1.b[0]
+; CHECK-NEXT:    umov w11, v1.b[3]
+; CHECK-NEXT:    umov w12, v1.b[4]
+; CHECK-NEXT:    umov w13, v1.b[5]
+; CHECK-NEXT:    umov w14, v1.b[6]
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    umov w15, v1.b[7]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    bfi w9, w8, #1, #1
+; CHECK-NEXT:    umov w8, v1.b[8]
+; CHECK-NEXT:    bfi w9, w10, #2, #1
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    umov w10, v1.b[9]
+; CHECK-NEXT:    bfi w9, w11, #3, #1
+; CHECK-NEXT:    bfi w9, w12, #4, #1
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    umov w11, v1.b[10]
+; CHECK-NEXT:    bfi w9, w13, #5, #1
+; CHECK-NEXT:    and w15, w15, #0x1
+; CHECK-NEXT:    umov w13, v0.b[1]
+; CHECK-NEXT:    orr w9, w9, w14, lsl #6
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    orr w9, w9, w15, lsl #7
+; CHECK-NEXT:    umov w15, v0.b[2]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    umov w14, v0.b[0]
+; CHECK-NEXT:    orr w8, w9, w8, lsl #8
+; CHECK-NEXT:    umov w9, v0.b[3]
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    orr w8, w8, w10, lsl #9
+; CHECK-NEXT:    umov w10, v0.b[4]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    orr w8, w8, w11, lsl #10
+; CHECK-NEXT:    and w11, w15, #0x1
+; CHECK-NEXT:    umov w15, v0.b[5]
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    bfi w14, w13, #1, #1
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    umov w13, v0.b[6]
+; CHECK-NEXT:    bfi w14, w11, #2, #1
+; CHECK-NEXT:    umov w11, v1.b[12]
+; CHECK-NEXT:    bfi w14, w9, #3, #1
+; CHECK-NEXT:    and w9, w15, #0x1
+; CHECK-NEXT:    umov w12, v1.b[11]
+; CHECK-NEXT:    bfi w14, w10, #4, #1
+; CHECK-NEXT:    umov w10, v0.b[7]
+; CHECK-NEXT:    umov w15, v0.b[8]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    bfi w14, w9, #5, #1
+; CHECK-NEXT:    and w9, w11, #0x1
+; CHECK-NEXT:    orr w11, w14, w13, lsl #6
+; CHECK-NEXT:    umov w13, v0.b[9]
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    and w14, w15, #0x1
+; CHECK-NEXT:    umov w15, v0.b[10]
+; CHECK-NEXT:    orr w8, w8, w12, lsl #11
+; CHECK-NEXT:    orr w10, w11, w10, lsl #7
+; CHECK-NEXT:    orr w8, w8, w9, lsl #12
+; CHECK-NEXT:    orr w9, w10, w14, lsl #8
+; CHECK-NEXT:    and w10, w13, #0x1
+; CHECK-NEXT:    umov w11, v0.b[11]
+; CHECK-NEXT:    and w12, w15, #0x1
+; CHECK-NEXT:    umov w13, v0.b[12]
+; CHECK-NEXT:    orr w9, w9, w10, lsl #9
+; CHECK-NEXT:    umov w14, v1.b[13]
+; CHECK-NEXT:    orr w9, w9, w12, lsl #10
+; CHECK-NEXT:    umov w12, v0.b[13]
+; CHECK-NEXT:    umov w10, v1.b[14]
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    umov w15, v0.b[14]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    orr w9, w9, w11, lsl #11
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    umov w11, v1.b[15]
+; CHECK-NEXT:    orr w9, w9, w13, lsl #12
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    umov w13, v0.b[15]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    and w15, w15, #0x1
+; CHECK-NEXT:    orr w8, w8, w14, lsl #13
+; CHECK-NEXT:    orr w9, w9, w12, lsl #13
+; CHECK-NEXT:    orr w8, w8, w10, lsl #14
+; CHECK-NEXT:    orr w9, w9, w15, lsl #14
+; CHECK-NEXT:    orr w8, w8, w11, lsl #15
+; CHECK-NEXT:    orr w9, w9, w13, lsl #15
+; CHECK-NEXT:    orr w8, w9, w8
+; CHECK-NEXT:    tst w8, #0xffff
+; CHECK-NEXT:    cset w0, eq
+; CHECK-NEXT:    add sp, sp, #16
+; CHECK-NEXT:    ret
+  %cmp1 = icmp eq <32 x i8> %a, zeroinitializer
+  %cast = bitcast <32 x i1> %cmp1 to i32
+  %cmp2 = icmp eq i32 %cast, zeroinitializer
+  ret i1 %cmp2
+}
+
+define i1 @combine_setcc_eq_vecreduce_or_v64i1(<64 x i8> %a) {
+; CHECK-LABEL: combine_setcc_eq_vecreduce_or_v64i1:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    sub sp, sp, #16
+; CHECK-NEXT:    .cfi_def_cfa_offset 16
+; CHECK-NEXT:    cmeq v3.16b, v3.16b, #0
+; CHECK-NEXT:    cmeq v1.16b, v1.16b, #0
+; CHECK-NEXT:    umov w8, v3.b[1]
+; CHECK-NEXT:    umov w10, v3.b[2]
+; CHECK-NEXT:    umov w9, v3.b[0]
+; CHECK-NEXT:    umov w11, v3.b[3]
+; CHECK-NEXT:    umov w12, v3.b[4]
+; CHECK-NEXT:    umov w13, v3.b[5]
+; CHECK-NEXT:    umov w14, v3.b[6]
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    umov w15, v3.b[7]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    bfi w9, w8, #1, #1
+; CHECK-NEXT:    umov w16, v3.b[8]
+; CHECK-NEXT:    bfi w9, w10, #2, #1
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    umov w17, v3.b[9]
+; CHECK-NEXT:    bfi w9, w11, #3, #1
+; CHECK-NEXT:    umov w8, v3.b[10]
+; CHECK-NEXT:    bfi w9, w12, #4, #1
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    umov w10, v3.b[11]
+; CHECK-NEXT:    bfi w9, w13, #5, #1
+; CHECK-NEXT:    and w15, w15, #0x1
+; CHECK-NEXT:    umov w11, v3.b[12]
+; CHECK-NEXT:    and w16, w16, #0x1
+; CHECK-NEXT:    orr w9, w9, w14, lsl #6
+; CHECK-NEXT:    umov w12, v3.b[13]
+; CHECK-NEXT:    and w14, w17, #0x1
+; CHECK-NEXT:    orr w9, w9, w15, lsl #7
+; CHECK-NEXT:    umov w13, v3.b[14]
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    orr w9, w9, w16, lsl #8
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    orr w9, w9, w14, lsl #9
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    orr w8, w9, w8, lsl #10
+; CHECK-NEXT:    umov w9, v1.b[1]
+; CHECK-NEXT:    orr w8, w8, w10, lsl #11
+; CHECK-NEXT:    and w10, w12, #0x1
+; CHECK-NEXT:    orr w8, w8, w11, lsl #12
+; CHECK-NEXT:    and w11, w13, #0x1
+; CHECK-NEXT:    umov w12, v1.b[2]
+; CHECK-NEXT:    orr w8, w8, w10, lsl #13
+; CHECK-NEXT:    umov w10, v1.b[0]
+; CHECK-NEXT:    orr w8, w8, w11, lsl #14
+; CHECK-NEXT:    umov w11, v1.b[3]
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    umov w13, v1.b[4]
+; CHECK-NEXT:    umov w14, v1.b[5]
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    umov w15, v3.b[15]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    bfi w10, w9, #1, #1
+; CHECK-NEXT:    and w9, w11, #0x1
+; CHECK-NEXT:    and w11, w13, #0x1
+; CHECK-NEXT:    bfi w10, w12, #2, #1
+; CHECK-NEXT:    umov w13, v1.b[6]
+; CHECK-NEXT:    and w12, w14, #0x1
+; CHECK-NEXT:    bfi w10, w9, #3, #1
+; CHECK-NEXT:    umov w9, v1.b[7]
+; CHECK-NEXT:    bfi w10, w11, #4, #1
+; CHECK-NEXT:    umov w11, v1.b[8]
+; CHECK-NEXT:    bfi w10, w12, #5, #1
+; CHECK-NEXT:    umov w14, v1.b[10]
+; CHECK-NEXT:    and w12, w13, #0x1
+; CHECK-NEXT:    umov w13, v1.b[9]
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    orr w8, w8, w15, lsl #15
+; CHECK-NEXT:    orr w10, w10, w12, lsl #6
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    orr w9, w10, w9, lsl #7
+; CHECK-NEXT:    umov w10, v1.b[11]
+; CHECK-NEXT:    orr w9, w9, w11, lsl #8
+; CHECK-NEXT:    and w11, w13, #0x1
+; CHECK-NEXT:    umov w13, v1.b[12]
+; CHECK-NEXT:    and w12, w14, #0x1
+; CHECK-NEXT:    orr w9, w9, w11, lsl #9
+; CHECK-NEXT:    umov w11, v1.b[13]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    orr w9, w9, w12, lsl #10
+; CHECK-NEXT:    cmeq v2.16b, v2.16b, #0
+; CHECK-NEXT:    orr w9, w9, w10, lsl #11
+; CHECK-NEXT:    and w10, w13, #0x1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    umov w12, v2.b[1]
+; CHECK-NEXT:    orr w9, w9, w10, lsl #12
+; CHECK-NEXT:    umov w10, v2.b[2]
+; CHECK-NEXT:    umov w14, v2.b[0]
+; CHECK-NEXT:    orr w9, w9, w11, lsl #13
+; CHECK-NEXT:    umov w11, v2.b[3]
+; CHECK-NEXT:    umov w15, v2.b[4]
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    umov w16, v2.b[5]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    umov w13, v1.b[14]
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    bfi w14, w12, #1, #1
+; CHECK-NEXT:    and w12, w15, #0x1
+; CHECK-NEXT:    umov w15, v2.b[6]
+; CHECK-NEXT:    bfi w14, w10, #2, #1
+; CHECK-NEXT:    umov w10, v2.b[7]
+; CHECK-NEXT:    bfi w14, w11, #3, #1
+; CHECK-NEXT:    and w11, w16, #0x1
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    bfi w14, w12, #4, #1
+; CHECK-NEXT:    and w12, w15, #0x1
+; CHECK-NEXT:    umov w16, v2.b[11]
+; CHECK-NEXT:    bfi w14, w11, #5, #1
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    orr w9, w9, w13, lsl #14
+; CHECK-NEXT:    umov w13, v2.b[8]
+; CHECK-NEXT:    orr w12, w14, w12, lsl #6
+; CHECK-NEXT:    umov w11, v1.b[15]
+; CHECK-NEXT:    orr w10, w12, w10, lsl #7
+; CHECK-NEXT:    umov w12, v2.b[9]
+; CHECK-NEXT:    umov w14, v2.b[10]
+; CHECK-NEXT:    and w16, w16, #0x1
+; CHECK-NEXT:    cmeq v0.16b, v0.16b, #0
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    orr w9, w9, w11, lsl #15
+; CHECK-NEXT:    and w11, w12, #0x1
+; CHECK-NEXT:    umov w12, v0.b[1]
+; CHECK-NEXT:    orr w10, w10, w13, lsl #8
+; CHECK-NEXT:    and w13, w14, #0x1
+; CHECK-NEXT:    umov w14, v0.b[0]
+; CHECK-NEXT:    orr w10, w10, w11, lsl #9
+; CHECK-NEXT:    umov w11, v0.b[2]
+; CHECK-NEXT:    orr w10, w10, w13, lsl #10
+; CHECK-NEXT:    umov w13, v0.b[3]
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    umov w15, v0.b[4]
+; CHECK-NEXT:    umov w17, v0.b[5]
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    orr w10, w10, w16, lsl #11
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    bfi w14, w12, #1, #1
+; CHECK-NEXT:    and w12, w13, #0x1
+; CHECK-NEXT:    umov w16, v2.b[13]
+; CHECK-NEXT:    and w13, w15, #0x1
+; CHECK-NEXT:    umov w15, v0.b[6]
+; CHECK-NEXT:    bfi w14, w11, #2, #1
+; CHECK-NEXT:    umov w11, v2.b[12]
+; CHECK-NEXT:    bfi w14, w12, #3, #1
+; CHECK-NEXT:    and w12, w17, #0x1
+; CHECK-NEXT:    bfi w14, w13, #4, #1
+; CHECK-NEXT:    umov w13, v0.b[7]
+; CHECK-NEXT:    umov w17, v0.b[8]
+; CHECK-NEXT:    and w15, w15, #0x1
+; CHECK-NEXT:    bfi w14, w12, #5, #1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    orr w12, w14, w15, lsl #6
+; CHECK-NEXT:    umov w14, v0.b[9]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    orr w10, w10, w11, lsl #12
+; CHECK-NEXT:    and w15, w17, #0x1
+; CHECK-NEXT:    umov w17, v0.b[10]
+; CHECK-NEXT:    orr w12, w12, w13, lsl #7
+; CHECK-NEXT:    umov w13, v0.b[11]
+; CHECK-NEXT:    orr w11, w12, w15, lsl #8
+; CHECK-NEXT:    and w12, w14, #0x1
+; CHECK-NEXT:    umov w15, v0.b[12]
+; CHECK-NEXT:    and w16, w16, #0x1
+; CHECK-NEXT:    and w14, w17, #0x1
+; CHECK-NEXT:    orr w11, w11, w12, lsl #9
+; CHECK-NEXT:    umov w12, v2.b[14]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    orr w11, w11, w14, lsl #10
+; CHECK-NEXT:    umov w14, v0.b[13]
+; CHECK-NEXT:    umov w17, v0.b[14]
+; CHECK-NEXT:    and w15, w15, #0x1
+; CHECK-NEXT:    orr w11, w11, w13, lsl #11
+; CHECK-NEXT:    umov w13, v2.b[15]
+; CHECK-NEXT:    orr w11, w11, w15, lsl #12
+; CHECK-NEXT:    umov w15, v0.b[15]
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    and w17, w17, #0x1
+; CHECK-NEXT:    orr w10, w10, w16, lsl #13
+; CHECK-NEXT:    orr w11, w11, w14, lsl #13
+; CHECK-NEXT:    orr w10, w10, w12, lsl #14
+; CHECK-NEXT:    orr w11, w11, w17, lsl #14
+; CHECK-NEXT:    orr w10, w10, w13, lsl #15
+; CHECK-NEXT:    orr w11, w11, w15, lsl #15
+; CHECK-NEXT:    orr w8, w9, w8
+; CHECK-NEXT:    orr w9, w11, w10
+; CHECK-NEXT:    orr w8, w9, w8
+; CHECK-NEXT:    tst w8, #0xffff
+; CHECK-NEXT:    cset w0, eq
+; CHECK-NEXT:    add sp, sp, #16
+; CHECK-NEXT:    ret
+  %cmp1 = icmp eq <64 x i8> %a, zeroinitializer
+  %cast = bitcast <64 x i1> %cmp1 to i64
+  %cmp2 = icmp eq i64 %cast, zeroinitializer
+  ret i1 %cmp2
+}
+
+define i1 @combine_setcc_ne_vecreduce_or_v8i1(<8 x i8> %a) {
+; CHECK-LABEL: combine_setcc_ne_vecreduce_or_v8i1:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    sub sp, sp, #16
+; CHECK-NEXT:    .cfi_def_cfa_offset 16
+; CHECK-NEXT:    cmtst v0.8b, v0.8b, v0.8b
+; CHECK-NEXT:    umov w8, v0.b[1]
+; CHECK-NEXT:    umov w10, v0.b[2]
+; CHECK-NEXT:    umov w9, v0.b[0]
+; CHECK-NEXT:    umov w11, v0.b[3]
+; CHECK-NEXT:    umov w12, v0.b[4]
+; CHECK-NEXT:    umov w13, v0.b[5]
+; CHECK-NEXT:    umov w14, v0.b[6]
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    bfi w9, w8, #1, #1
+; CHECK-NEXT:    and w8, w12, #0x1
+; CHECK-NEXT:    bfi w9, w10, #2, #1
+; CHECK-NEXT:    and w10, w13, #0x1
+; CHECK-NEXT:    bfi w9, w11, #3, #1
+; CHECK-NEXT:    umov w11, v0.b[7]
+; CHECK-NEXT:    bfi w9, w8, #4, #1
+; CHECK-NEXT:    and w8, w14, #0x1
+; CHECK-NEXT:    bfi w9, w10, #5, #1
+; CHECK-NEXT:    orr w8, w9, w8, lsl #6
+; CHECK-NEXT:    orr w8, w8, w11, lsl #7
+; CHECK-NEXT:    tst w8, #0xff
+; CHECK-NEXT:    cset w0, ne
+; CHECK-NEXT:    add sp, sp, #16
+; CHECK-NEXT:    ret
+  %cmp1 = icmp ne <8 x i8> %a, zeroinitializer
+  %cast = bitcast <8 x i1> %cmp1 to i8
+  %cmp2 = icmp ne i8 %cast, zeroinitializer
+  ret i1 %cmp2
+}
+
+define i1 @combine_setcc_ne_vecreduce_or_v16i1(<16 x i8> %a) {
+; CHECK-LABEL: combine_setcc_ne_vecreduce_or_v16i1:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    sub sp, sp, #16
+; CHECK-NEXT:    .cfi_def_cfa_offset 16
+; CHECK-NEXT:    cmtst v0.16b, v0.16b, v0.16b
+; CHECK-NEXT:    umov w8, v0.b[1]
+; CHECK-NEXT:    umov w10, v0.b[2]
+; CHECK-NEXT:    umov w9, v0.b[0]
+; CHECK-NEXT:    umov w11, v0.b[3]
+; CHECK-NEXT:    umov w12, v0.b[4]
+; CHECK-NEXT:    umov w13, v0.b[5]
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    bfi w9, w8, #1, #1
+; CHECK-NEXT:    umov w8, v0.b[6]
+; CHECK-NEXT:    bfi w9, w10, #2, #1
+; CHECK-NEXT:    umov w10, v0.b[7]
+; CHECK-NEXT:    bfi w9, w11, #3, #1
+; CHECK-NEXT:    umov w11, v0.b[8]
+; CHECK-NEXT:    bfi w9, w12, #4, #1
+; CHECK-NEXT:    umov w12, v0.b[9]
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    bfi w9, w13, #5, #1
+; CHECK-NEXT:    umov w13, v0.b[10]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    orr w8, w9, w8, lsl #6
+; CHECK-NEXT:    umov w9, v0.b[11]
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    orr w8, w8, w10, lsl #7
+; CHECK-NEXT:    umov w10, v0.b[12]
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    orr w8, w8, w11, lsl #8
+; CHECK-NEXT:    umov w11, v0.b[13]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    orr w8, w8, w12, lsl #9
+; CHECK-NEXT:    umov w12, v0.b[14]
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    orr w8, w8, w13, lsl #10
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    orr w8, w8, w9, lsl #11
+; CHECK-NEXT:    and w9, w11, #0x1
+; CHECK-NEXT:    umov w11, v0.b[15]
+; CHECK-NEXT:    orr w8, w8, w10, lsl #12
+; CHECK-NEXT:    and w10, w12, #0x1
+; CHECK-NEXT:    orr w8, w8, w9, lsl #13
+; CHECK-NEXT:    orr w8, w8, w10, lsl #14
+; CHECK-NEXT:    orr w8, w8, w11, lsl #15
+; CHECK-NEXT:    tst w8, #0xffff
+; CHECK-NEXT:    cset w0, ne
+; CHECK-NEXT:    add sp, sp, #16
+; CHECK-NEXT:    ret
+  %cmp1 = icmp ne <16 x i8> %a, zeroinitializer
+  %cast = bitcast <16 x i1> %cmp1 to i16
+  %cmp2 = icmp ne i16 %cast, zeroinitializer
+  ret i1 %cmp2
+}
+
+define i1 @combine_setcc_ne_vecreduce_or_v32i1(<32 x i8> %a) {
+; CHECK-LABEL: combine_setcc_ne_vecreduce_or_v32i1:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    sub sp, sp, #16
+; CHECK-NEXT:    .cfi_def_cfa_offset 16
+; CHECK-NEXT:    cmtst v1.16b, v1.16b, v1.16b
+; CHECK-NEXT:    cmtst v0.16b, v0.16b, v0.16b
+; CHECK-NEXT:    umov w8, v1.b[1]
+; CHECK-NEXT:    umov w10, v1.b[2]
+; CHECK-NEXT:    umov w9, v1.b[0]
+; CHECK-NEXT:    umov w11, v1.b[3]
+; CHECK-NEXT:    umov w12, v1.b[4]
+; CHECK-NEXT:    umov w13, v1.b[5]
+; CHECK-NEXT:    umov w14, v1.b[6]
+; CHECK-NEXT:    umov w15, v1.b[7]
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    bfi w9, w8, #1, #1
+; CHECK-NEXT:    umov w8, v1.b[8]
+; CHECK-NEXT:    bfi w9, w10, #2, #1
+; CHECK-NEXT:    umov w10, v1.b[9]
+; CHECK-NEXT:    bfi w9, w11, #3, #1
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    bfi w9, w12, #4, #1
+; CHECK-NEXT:    umov w11, v1.b[10]
+; CHECK-NEXT:    bfi w9, w13, #5, #1
+; CHECK-NEXT:    and w15, w15, #0x1
+; CHECK-NEXT:    umov w13, v0.b[1]
+; CHECK-NEXT:    orr w9, w9, w14, lsl #6
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    orr w9, w9, w15, lsl #7
+; CHECK-NEXT:    umov w15, v0.b[2]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    umov w14, v0.b[0]
+; CHECK-NEXT:    orr w8, w9, w8, lsl #8
+; CHECK-NEXT:    umov w9, v0.b[3]
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    orr w8, w8, w10, lsl #9
+; CHECK-NEXT:    umov w10, v0.b[4]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    orr w8, w8, w11, lsl #10
+; CHECK-NEXT:    umov w11, v0.b[5]
+; CHECK-NEXT:    and w15, w15, #0x1
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    bfi w14, w13, #1, #1
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    umov w13, v0.b[6]
+; CHECK-NEXT:    bfi w14, w15, #2, #1
+; CHECK-NEXT:    bfi w14, w9, #3, #1
+; CHECK-NEXT:    and w9, w11, #0x1
+; CHECK-NEXT:    umov w12, v1.b[11]
+; CHECK-NEXT:    umov w15, v1.b[12]
+; CHECK-NEXT:    bfi w14, w10, #4, #1
+; CHECK-NEXT:    umov w10, v0.b[7]
+; CHECK-NEXT:    and w11, w13, #0x1
+; CHECK-NEXT:    umov w13, v0.b[8]
+; CHECK-NEXT:    bfi w14, w9, #5, #1
+; CHECK-NEXT:    orr w11, w14, w11, lsl #6
+; CHECK-NEXT:    umov w14, v0.b[9]
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    and w9, w15, #0x1
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    umov w15, v0.b[10]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    orr w8, w8, w12, lsl #11
+; CHECK-NEXT:    orr w10, w11, w10, lsl #7
+; CHECK-NEXT:    orr w8, w8, w9, lsl #12
+; CHECK-NEXT:    orr w9, w10, w13, lsl #8
+; CHECK-NEXT:    and w10, w14, #0x1
+; CHECK-NEXT:    umov w11, v0.b[11]
+; CHECK-NEXT:    and w12, w15, #0x1
+; CHECK-NEXT:    umov w13, v0.b[12]
+; CHECK-NEXT:    orr w9, w9, w10, lsl #9
+; CHECK-NEXT:    umov w14, v1.b[13]
+; CHECK-NEXT:    orr w9, w9, w12, lsl #10
+; CHECK-NEXT:    umov w12, v0.b[13]
+; CHECK-NEXT:    umov w10, v1.b[14]
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    umov w15, v0.b[14]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    orr w9, w9, w11, lsl #11
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    umov w11, v1.b[15]
+; CHECK-NEXT:    orr w9, w9, w13, lsl #12
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    umov w13, v0.b[15]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    and w15, w15, #0x1
+; CHECK-NEXT:    orr w8, w8, w14, lsl #13
+; CHECK-NEXT:    orr w9, w9, w12, lsl #13
+; CHECK-NEXT:    orr w8, w8, w10, lsl #14
+; CHECK-NEXT:    orr w9, w9, w15, lsl #14
+; CHECK-NEXT:    orr w8, w8, w11, lsl #15
+; CHECK-NEXT:    orr w9, w9, w13, lsl #15
+; CHECK-NEXT:    orr w8, w9, w8
+; CHECK-NEXT:    tst w8, #0xffff
+; CHECK-NEXT:    cset w0, ne
+; CHECK-NEXT:    add sp, sp, #16
+; CHECK-NEXT:    ret
+  %cmp1 = icmp ne <32 x i8> %a, zeroinitializer
+  %cast = bitcast <32 x i1> %cmp1 to i32
+  %cmp2 = icmp ne i32 %cast, zeroinitializer
+  ret i1 %cmp2
+}
+
+define i1 @combine_setcc_ne_vecreduce_or_v64i1(<64 x i8> %a) {
+; CHECK-LABEL: combine_setcc_ne_vecreduce_or_v64i1:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    sub sp, sp, #16
+; CHECK-NEXT:    .cfi_def_cfa_offset 16
+; CHECK-NEXT:    cmtst v3.16b, v3.16b, v3.16b
+; CHECK-NEXT:    cmtst v1.16b, v1.16b, v1.16b
+; CHECK-NEXT:    cmtst v2.16b, v2.16b, v2.16b
+; CHECK-NEXT:    umov w8, v3.b[1]
+; CHECK-NEXT:    umov w10, v3.b[2]
+; CHECK-NEXT:    umov w9, v3.b[0]
+; CHECK-NEXT:    umov w11, v3.b[3]
+; CHECK-NEXT:    umov w12, v3.b[4]
+; CHECK-NEXT:    umov w13, v3.b[5]
+; CHECK-NEXT:    umov w14, v3.b[6]
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    umov w15, v3.b[7]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    bfi w9, w8, #1, #1
+; CHECK-NEXT:    umov w16, v3.b[8]
+; CHECK-NEXT:    bfi w9, w10, #2, #1
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    umov w17, v3.b[9]
+; CHECK-NEXT:    bfi w9, w11, #3, #1
+; CHECK-NEXT:    umov w8, v3.b[10]
+; CHECK-NEXT:    bfi w9, w12, #4, #1
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    umov w10, v3.b[11]
+; CHECK-NEXT:    bfi w9, w13, #5, #1
+; CHECK-NEXT:    and w15, w15, #0x1
+; CHECK-NEXT:    umov w11, v3.b[12]
+; CHECK-NEXT:    orr w9, w9, w14, lsl #6
+; CHECK-NEXT:    and w16, w16, #0x1
+; CHECK-NEXT:    umov w12, v3.b[13]
+; CHECK-NEXT:    orr w9, w9, w15, lsl #7
+; CHECK-NEXT:    and w17, w17, #0x1
+; CHECK-NEXT:    and w8, w8, #0x1
+; CHECK-NEXT:    orr w9, w9, w16, lsl #8
+; CHECK-NEXT:    umov w14, v1.b[1]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    orr w9, w9, w17, lsl #9
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    orr w8, w9, w8, lsl #10
+; CHECK-NEXT:    umov w15, v1.b[0]
+; CHECK-NEXT:    and w9, w12, #0x1
+; CHECK-NEXT:    orr w8, w8, w10, lsl #11
+; CHECK-NEXT:    umov w10, v1.b[2]
+; CHECK-NEXT:    orr w8, w8, w11, lsl #12
+; CHECK-NEXT:    umov w11, v1.b[3]
+; CHECK-NEXT:    orr w8, w8, w9, lsl #13
+; CHECK-NEXT:    and w9, w14, #0x1
+; CHECK-NEXT:    umov w12, v1.b[4]
+; CHECK-NEXT:    and w14, w15, #0x1
+; CHECK-NEXT:    umov w15, v1.b[5]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    umov w13, v3.b[14]
+; CHECK-NEXT:    bfi w14, w9, #1, #1
+; CHECK-NEXT:    and w9, w11, #0x1
+; CHECK-NEXT:    and w11, w12, #0x1
+; CHECK-NEXT:    umov w12, v1.b[6]
+; CHECK-NEXT:    bfi w14, w10, #2, #1
+; CHECK-NEXT:    umov w10, v1.b[7]
+; CHECK-NEXT:    bfi w14, w9, #3, #1
+; CHECK-NEXT:    and w9, w15, #0x1
+; CHECK-NEXT:    bfi w14, w11, #4, #1
+; CHECK-NEXT:    umov w15, v1.b[11]
+; CHECK-NEXT:    and w11, w12, #0x1
+; CHECK-NEXT:    umov w12, v1.b[8]
+; CHECK-NEXT:    bfi w14, w9, #5, #1
+; CHECK-NEXT:    umov w9, v1.b[9]
+; CHECK-NEXT:    orr w11, w14, w11, lsl #6
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    umov w14, v1.b[10]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    orr w10, w11, w10, lsl #7
+; CHECK-NEXT:    and w9, w9, #0x1
+; CHECK-NEXT:    umov w11, v1.b[12]
+; CHECK-NEXT:    orr w10, w10, w12, lsl #8
+; CHECK-NEXT:    and w12, w15, #0x1
+; CHECK-NEXT:    orr w9, w10, w9, lsl #9
+; CHECK-NEXT:    and w10, w14, #0x1
+; CHECK-NEXT:    orr w8, w8, w13, lsl #14
+; CHECK-NEXT:    umov w13, v3.b[15]
+; CHECK-NEXT:    umov w14, v1.b[13]
+; CHECK-NEXT:    orr w9, w9, w10, lsl #10
+; CHECK-NEXT:    and w10, w11, #0x1
+; CHECK-NEXT:    orr w9, w9, w12, lsl #11
+; CHECK-NEXT:    umov w12, v2.b[2]
+; CHECK-NEXT:    umov w15, v2.b[4]
+; CHECK-NEXT:    orr w9, w9, w10, lsl #12
+; CHECK-NEXT:    umov w10, v2.b[1]
+; CHECK-NEXT:    orr w8, w8, w13, lsl #15
+; CHECK-NEXT:    and w11, w14, #0x1
+; CHECK-NEXT:    umov w13, v2.b[0]
+; CHECK-NEXT:    umov w14, v2.b[3]
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    umov w16, v2.b[5]
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    orr w9, w9, w11, lsl #13
+; CHECK-NEXT:    umov w11, v1.b[14]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    bfi w13, w10, #1, #1
+; CHECK-NEXT:    umov w10, v2.b[6]
+; CHECK-NEXT:    bfi w13, w12, #2, #1
+; CHECK-NEXT:    and w12, w15, #0x1
+; CHECK-NEXT:    bfi w13, w14, #3, #1
+; CHECK-NEXT:    and w14, w16, #0x1
+; CHECK-NEXT:    umov w15, v2.b[7]
+; CHECK-NEXT:    umov w16, v2.b[8]
+; CHECK-NEXT:    bfi w13, w12, #4, #1
+; CHECK-NEXT:    and w10, w10, #0x1
+; CHECK-NEXT:    bfi w13, w14, #5, #1
+; CHECK-NEXT:    umov w12, v1.b[15]
+; CHECK-NEXT:    orr w10, w13, w10, lsl #6
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    and w13, w15, #0x1
+; CHECK-NEXT:    umov w15, v2.b[9]
+; CHECK-NEXT:    and w14, w16, #0x1
+; CHECK-NEXT:    umov w16, v2.b[10]
+; CHECK-NEXT:    cmtst v0.16b, v0.16b, v0.16b
+; CHECK-NEXT:    orr w9, w9, w11, lsl #14
+; CHECK-NEXT:    orr w10, w10, w13, lsl #7
+; CHECK-NEXT:    orr w9, w9, w12, lsl #15
+; CHECK-NEXT:    and w11, w15, #0x1
+; CHECK-NEXT:    orr w10, w10, w14, lsl #8
+; CHECK-NEXT:    umov w12, v0.b[1]
+; CHECK-NEXT:    and w13, w16, #0x1
+; CHECK-NEXT:    umov w14, v0.b[0]
+; CHECK-NEXT:    orr w10, w10, w11, lsl #9
+; CHECK-NEXT:    umov w11, v0.b[2]
+; CHECK-NEXT:    orr w10, w10, w13, lsl #10
+; CHECK-NEXT:    umov w13, v0.b[3]
+; CHECK-NEXT:    umov w15, v0.b[4]
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    umov w17, v0.b[5]
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    umov w16, v2.b[11]
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    orr w8, w9, w8
+; CHECK-NEXT:    bfi w14, w12, #1, #1
+; CHECK-NEXT:    and w12, w13, #0x1
+; CHECK-NEXT:    and w13, w15, #0x1
+; CHECK-NEXT:    umov w15, v0.b[6]
+; CHECK-NEXT:    bfi w14, w11, #2, #1
+; CHECK-NEXT:    umov w11, v2.b[12]
+; CHECK-NEXT:    bfi w14, w12, #3, #1
+; CHECK-NEXT:    and w12, w17, #0x1
+; CHECK-NEXT:    bfi w14, w13, #4, #1
+; CHECK-NEXT:    umov w13, v0.b[7]
+; CHECK-NEXT:    umov w17, v0.b[8]
+; CHECK-NEXT:    and w15, w15, #0x1
+; CHECK-NEXT:    bfi w14, w12, #5, #1
+; CHECK-NEXT:    and w16, w16, #0x1
+; CHECK-NEXT:    orr w12, w14, w15, lsl #6
+; CHECK-NEXT:    umov w14, v0.b[9]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    and w11, w11, #0x1
+; CHECK-NEXT:    and w15, w17, #0x1
+; CHECK-NEXT:    umov w17, v0.b[10]
+; CHECK-NEXT:    orr w10, w10, w16, lsl #11
+; CHECK-NEXT:    orr w12, w12, w13, lsl #7
+; CHECK-NEXT:    orr w10, w10, w11, lsl #12
+; CHECK-NEXT:    orr w11, w12, w15, lsl #8
+; CHECK-NEXT:    and w12, w14, #0x1
+; CHECK-NEXT:    umov w13, v0.b[11]
+; CHECK-NEXT:    and w14, w17, #0x1
+; CHECK-NEXT:    umov w15, v0.b[12]
+; CHECK-NEXT:    orr w11, w11, w12, lsl #9
+; CHECK-NEXT:    umov w16, v2.b[13]
+; CHECK-NEXT:    orr w11, w11, w14, lsl #10
+; CHECK-NEXT:    umov w14, v0.b[13]
+; CHECK-NEXT:    umov w12, v2.b[14]
+; CHECK-NEXT:    and w13, w13, #0x1
+; CHECK-NEXT:    umov w17, v0.b[14]
+; CHECK-NEXT:    and w15, w15, #0x1
+; CHECK-NEXT:    orr w11, w11, w13, lsl #11
+; CHECK-NEXT:    and w16, w16, #0x1
+; CHECK-NEXT:    umov w13, v2.b[15]
+; CHECK-NEXT:    orr w11, w11, w15, lsl #12
+; CHECK-NEXT:    and w14, w14, #0x1
+; CHECK-NEXT:    umov w15, v0.b[15]
+; CHECK-NEXT:    and w12, w12, #0x1
+; CHECK-NEXT:    and w17, w17, #0x1
+; CHECK-NEXT:    orr w10, w10, w16, lsl #13
+; CHECK-NEXT:    orr w11, w11, w14, lsl #13
+; CHECK-NEXT:    orr w10, w10, w12, lsl #14
+; CHECK-NEXT:    orr w11, w11, w17, lsl #14
+; CHECK-NEXT:    orr w10, w10, w13, lsl #15
+; CHECK-NEXT:    orr w11, w11, w15, lsl #15
+; CHECK-NEXT:    orr w9, w11, w10
+; CHECK-NEXT:    orr w8, w9, w8
+; CHECK-NEXT:    tst w8, #0xffff
+; CHECK-NEXT:    cset w0, ne
+; CHECK-NEXT:    add sp, sp, #16
+; CHECK-NEXT:    ret
+  %cmp1 = icmp ne <64 x i8> %a, zeroinitializer
+  %cast = bitcast <64 x i1> %cmp1 to i64
+  %cmp2 = icmp ne i64 %cast, zeroinitializer
+  ret i1 %cmp2
+}


        


More information about the llvm-commits mailing list