1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
3 ; RUN: | FileCheck -check-prefix=RV32I %s
5 define void @getSetCCResultType(<4 x i32>* %p, <4 x i32>* %q) nounwind {
6 ; RV32I-LABEL: getSetCCResultType:
7 ; RV32I: # %bb.0: # %entry
8 ; RV32I-NEXT: lw a1, 12(a0)
9 ; RV32I-NEXT: seqz a1, a1
10 ; RV32I-NEXT: neg a1, a1
11 ; RV32I-NEXT: sw a1, 12(a0)
12 ; RV32I-NEXT: lw a1, 8(a0)
13 ; RV32I-NEXT: seqz a1, a1
14 ; RV32I-NEXT: neg a1, a1
15 ; RV32I-NEXT: sw a1, 8(a0)
16 ; RV32I-NEXT: lw a1, 4(a0)
17 ; RV32I-NEXT: seqz a1, a1
18 ; RV32I-NEXT: neg a1, a1
19 ; RV32I-NEXT: sw a1, 4(a0)
20 ; RV32I-NEXT: lw a1, 0(a0)
21 ; RV32I-NEXT: seqz a1, a1
22 ; RV32I-NEXT: neg a1, a1
23 ; RV32I-NEXT: sw a1, 0(a0)
26 %0 = load <4 x i32>, <4 x i32>* %p, align 16
27 %cmp = icmp eq <4 x i32> %0, zeroinitializer
28 %sext = sext <4 x i1> %cmp to <4 x i32>
29 store <4 x i32> %sext, <4 x i32>* %p, align 16