brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 6ea611e Raw
34 lines · plain
1# RUN: not --crash llc -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s2# REQUIRES: aarch64-registered-target3--- |4  target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"5  target triple = "aarch64-unknown-unknown"6 7  define i32 @vector_reductions() {8    ret i32 09  }10 11...12---13name:            vector_reductions14legalized:       true15regBankSelected: false16selected:        false17tracksRegLiveness: true18body:             |19  bb.0:20 21    %vec_v2s64:_(<2 x s64>) = IMPLICIT_DEF22    %scalar_s64:_(s64) = IMPLICIT_DEF23 24    %seq_fadd:_(<2 x s64>) = G_VECREDUCE_SEQ_FADD %scalar_s64, %vec_v2s6425    ; CHECK: Bad machine code: Vector reduction requires a scalar destination type26 27    %dst:_(s64) = G_VECREDUCE_SEQ_FADD %vec_v2s64, %vec_v2s6428    ; CHECK: Bad machine code: Sequential FADD/FMUL vector reduction requires a scalar 1st operand29 30    %dst:_(s64) = G_VECREDUCE_SEQ_FADD %scalar_s64, %scalar_s6431    ; CHECK: Bad machine code: Sequential FADD/FMUL vector reduction must have a vector 2nd operand32 33...34