; Checks if widening instructions works for SVE ; RUN: opt -cost-model -analyze -mtriple=aarch64--linux-gnu -mattr=+sve < %s 2>%t | FileCheck %s ; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t ; If this check fails please read test/CodeGen/AArch64/README for instructions on how to resolve it. ; WARN-NOT: warning define @widening( %in, %in2) { ; CHECK-LABEL: 'widening': ; CHECK: Cost Model: Found an estimated cost of {{[0-9]+}} for instruction: %in.bc = bitcast %in to ; CHECK-NEXT: Cost Model: Found an estimated cost of {{[0-9]+}} for instruction: %in2.ext = zext %in2 to ; CHECK-NEXT: Cost Model: Found an estimated cost of {{[0-9]+}} for instruction: %in.add = add %in.bc, %in2.ext ; CHECK-NEXT: Cost Model: Found an estimated cost of {{[0-9]+}} for instruction: ret %in.add %in.bc = bitcast %in to %in2.ext = zext %in2 to %in.add = add %in.bc, %in2.ext ret %in.add }