1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py 2; RUN: opt -mtriple=aarch64-linux-gnu -mattr=+sve -passes="print<cost-model>" 2>&1 -disable-output < %s | FileCheck %s 3 4target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" 5 6define i32 @vscale32() { 7; CHECK-LABEL: 'vscale32' 8; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %c = call i32 @llvm.vscale.i32() 9; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret i32 %c 10; 11 %c = call i32 @llvm.vscale.i32() 12 ret i32 %c 13} 14 15define i64 @vscale64() { 16; CHECK-LABEL: 'vscale64' 17; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %c = call i64 @llvm.vscale.i64() 18; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret i64 %c 19; 20 %c = call i64 @llvm.vscale.i64() 21 ret i64 %c 22} 23 24declare i32 @llvm.vscale.i32() 25declare i64 @llvm.vscale.i64() 26