[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / Analysis / CostModel / AArch64 / sve-vscale.ll
blobd85546166625eb46d28ee604a008946d2906f131
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
4 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
6 define 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
11   %c = call i32 @llvm.vscale.i32()
12   ret i32 %c
15 define 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
20   %c = call i64 @llvm.vscale.i64()
21   ret i64 %c
24 declare i32 @llvm.vscale.i32()
25 declare i64 @llvm.vscale.i64()