brintos

brintos / llvm-project-archived public Read only

0
0
Text · 971 B · 1f4cc86 Raw
18 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py2; RUN: opt < %s -passes="print<cost-model>" -cost-kind=all 2>&1 -disable-output -mtriple=aarch64-unknown | FileCheck %s3 4target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-v256:32:256-a0:0:32-n32-S32"5define void @getMemoryOpCost() {6; CHECK-LABEL: 'getMemoryOpCost'7; CHECK-NEXT:  Cost Model: Found costs of 1 for: store <2 x ptr> undef, ptr undef, align 48; CHECK-NEXT:  Cost Model: Found costs of RThru:2 CodeSize:2 Lat:1 SizeLat:2 for: store <4 x ptr> undef, ptr undef, align 49; CHECK-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:1 SizeLat:4 for: store <8 x ptr> undef, ptr undef, align 410; CHECK-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void11;12  store <2 x ptr> undef, ptr undef13  store <4 x ptr> undef, ptr undef14  store <8 x ptr> undef, ptr undef15 16  ret void17}18