brintos

brintos / llvm-project-archived public Read only

0
0
Text · 728 B · 7c569da Raw
19 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc < %s -mtriple=riscv32 -mattr=+v | FileCheck %s --check-prefixes=CHECK,RV323; RUN: llc < %s -mtriple=riscv64 -mattr=+v | FileCheck %s --check-prefixes=CHECK,RV644 5define i32 @test(<8 x i1> %mask) {6; CHECK-LABEL: test:7; CHECK:       # %bb.0:8; CHECK-NEXT:    vsetivli zero, 8, e8, mf2, ta, ma9; CHECK-NEXT:    vcpop.m a0, v010; CHECK-NEXT:    ret11    %1 = bitcast <8 x i1> %mask to i812    %2 = call range(i8 0, 9) i8 @llvm.ctpop.i8(i8 %1)13    %3 = zext nneg i8 %2 to i3214    ret i32 %315}16;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:17; RV32: {{.*}}18; RV64: {{.*}}19