|
1 |
| -; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py |
2 |
| -; RUN: opt < %s -enable-no-nans-fp-math -passes="print<cost-model>" 2>&1 -disable-output -mtriple=aarch64 -mattr=+fullfp16 -mattr=+sve | FileCheck %s |
| 1 | +; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 4 |
| 2 | +; RUN: opt -mattr=+sve -mattr=+fullfp16 -enable-no-nans-fp-math -disable-output -passes="print<cost-model>" %s 2>&1 | FileCheck %s |
| 3 | + |
| 4 | +target triple = "aarch64-unknown-linux-gnu" |
3 | 5 |
|
4 |
| -target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" |
5 | 6 |
|
6 | 7 | define void @fadd() {
|
7 | 8 | ; CHECK-LABEL: 'fadd'
|
@@ -137,14 +138,14 @@ define void @fdiv() {
|
137 | 138 |
|
138 | 139 | define void @frem() {
|
139 | 140 | ; CHECK-LABEL: 'frem'
|
140 |
| -; CHECK-NEXT: Cost Model: Invalid cost for instruction: %V4F16 = frem <vscale x 4 x half> undef, undef |
141 |
| -; CHECK-NEXT: Cost Model: Invalid cost for instruction: %V8F16 = frem <vscale x 8 x half> undef, undef |
142 |
| -; CHECK-NEXT: Cost Model: Invalid cost for instruction: %V16F16 = frem <vscale x 16 x half> undef, undef |
143 |
| -; CHECK-NEXT: Cost Model: Invalid cost for instruction: %V2F32 = frem <vscale x 2 x float> undef, undef |
144 |
| -; CHECK-NEXT: Cost Model: Invalid cost for instruction: %V4F32 = frem <vscale x 4 x float> undef, undef |
145 |
| -; CHECK-NEXT: Cost Model: Invalid cost for instruction: %V8F32 = frem <vscale x 8 x float> undef, undef |
146 |
| -; CHECK-NEXT: Cost Model: Invalid cost for instruction: %V2F64 = frem <vscale x 2 x double> undef, undef |
147 |
| -; CHECK-NEXT: Cost Model: Invalid cost for instruction: %V4F64 = frem <vscale x 4 x double> undef, undef |
| 141 | +; CHECK-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %V4F16 = frem <vscale x 4 x half> undef, undef |
| 142 | +; CHECK-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %V8F16 = frem <vscale x 8 x half> undef, undef |
| 143 | +; CHECK-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %V16F16 = frem <vscale x 16 x half> undef, undef |
| 144 | +; CHECK-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %V2F32 = frem <vscale x 2 x float> undef, undef |
| 145 | +; CHECK-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %V4F32 = frem <vscale x 4 x float> undef, undef |
| 146 | +; CHECK-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %V8F32 = frem <vscale x 8 x float> undef, undef |
| 147 | +; CHECK-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %V2F64 = frem <vscale x 2 x double> undef, undef |
| 148 | +; CHECK-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %V4F64 = frem <vscale x 4 x double> undef, undef |
148 | 149 | ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
|
149 | 150 | ;
|
150 | 151 | %V4F16 = frem <vscale x 4 x half> undef, undef
|
|
0 commit comments