1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py 2; RUN: opt < %s -S -mtriple=thumbv8.1m.main-none-eabi -mattr=+mve.fp -cost-model -analyze | FileCheck %s 3 4; Note that these instructions like this (not in a look that could be tail 5; predicated) should not really be free. We currently assume that all active 6; lane masks are free. 7 8define void @v4i32(i32 %index, i32 %TC) { 9; CHECK-LABEL: 'v4i32' 10; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %active.lane.mask = call <4 x i1> @llvm.get.active.lane.mask.v4i1.i32(i32 %index, i32 %TC) 11; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 12; 13 %active.lane.mask = call <4 x i1> @llvm.get.active.lane.mask.v4i1.i32(i32 %index, i32 %TC) 14 ret void 15} 16 17define void @v8i16(i32 %index, i32 %TC) { 18; CHECK-LABEL: 'v8i16' 19; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %active.lane.mask = call <8 x i1> @llvm.get.active.lane.mask.v8i1.i32(i32 %index, i32 %TC) 20; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 21; 22 %active.lane.mask = call <8 x i1> @llvm.get.active.lane.mask.v8i1.i32(i32 %index, i32 %TC) 23 ret void 24} 25 26define void @v16i8(i32 %index, i32 %TC) { 27; CHECK-LABEL: 'v16i8' 28; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %active.lane.mask = call <16 x i1> @llvm.get.active.lane.mask.v16i1.i32(i32 %index, i32 %TC) 29; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 30; 31 %active.lane.mask = call <16 x i1> @llvm.get.active.lane.mask.v16i1.i32(i32 %index, i32 %TC) 32 ret void 33} 34 35declare <4 x i1> @llvm.get.active.lane.mask.v4i1.i32(i32, i32) 36declare <8 x i1> @llvm.get.active.lane.mask.v8i1.i32(i32, i32) 37declare <16 x i1> @llvm.get.active.lane.mask.v16i1.i32(i32, i32) 38