; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py ; RUN: opt < %s -mtriple=aarch64-unknown-linux-gnu -mattr=+sve2 -passes="print" -cost-kind=all 2>&1 -disable-output | FileCheck %s target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" define void @sdiv() { ; CHECK-LABEL: 'sdiv' ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %V2i64 = sdiv <2 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V4i64 = sdiv <4 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V8i64 = sdiv <8 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V2i32 = sdiv <2 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %V4i32 = sdiv <4 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V6i32 = sdiv <6 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V8i32 = sdiv <8 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V16i32 = sdiv <16 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i16 = sdiv <2 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V4i16 = sdiv <4 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V8i16 = sdiv <8 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %V16i16 = sdiv <16 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:32 CodeSize:4 Lat:4 SizeLat:4 for: %V32i16 = sdiv <32 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i8 = sdiv <2 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V4i8 = sdiv <4 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %V6i8 = sdiv <6 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V8i8 = sdiv <8 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %V16i8 = sdiv <16 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:32 CodeSize:4 Lat:4 SizeLat:4 for: %V32i8 = sdiv <32 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:64 CodeSize:4 Lat:4 SizeLat:4 for: %V64i8 = sdiv <64 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i64 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV4i64 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i64 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i32 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i32 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV8i32 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i32 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i16 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i16 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i16 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i16 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:32 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i16 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i8 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i8 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i8 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i8 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:32 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i8 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:64 CodeSize:4 Lat:4 SizeLat:4 for: %NV64i8 = sdiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V2i64 = sdiv <2 x i64> undef, undef %V4i64 = sdiv <4 x i64> undef, undef %V8i64 = sdiv <8 x i64> undef, undef %V2i32 = sdiv <2 x i32> undef, undef %V4i32 = sdiv <4 x i32> undef, undef %V6i32 = sdiv <6 x i32> undef, undef %V8i32 = sdiv <8 x i32> undef, undef %V16i32 = sdiv <16 x i32> undef, undef %V2i16 = sdiv <2 x i16> undef, undef %V4i16 = sdiv <4 x i16> undef, undef %V8i16 = sdiv <8 x i16> undef, undef %V16i16 = sdiv <16 x i16> undef, undef %V32i16 = sdiv <32 x i16> undef, undef %V2i8 = sdiv <2 x i8> undef, undef %V4i8 = sdiv <4 x i8> undef, undef %V6i8 = sdiv <6 x i8> undef, undef %V8i8 = sdiv <8 x i8> undef, undef %V16i8 = sdiv <16 x i8> undef, undef %V32i8 = sdiv <32 x i8> undef, undef %V64i8 = sdiv <64 x i8> undef, undef %NV2i64 = sdiv undef, undef %NV4i64 = sdiv undef, undef %NV8i64 = sdiv undef, undef %NV2i32 = sdiv undef, undef %NV4i32 = sdiv undef, undef %NV8i32 = sdiv undef, undef %NV16i32 = sdiv undef, undef %NV2i16 = sdiv undef, undef %NV4i16 = sdiv undef, undef %NV8i16 = sdiv undef, undef %NV16i16 = sdiv undef, undef %NV32i16 = sdiv undef, undef %NV2i8 = sdiv undef, undef %NV4i8 = sdiv undef, undef %NV8i8 = sdiv undef, undef %NV16i8 = sdiv undef, undef %NV32i8 = sdiv undef, undef %NV64i8 = sdiv undef, undef ret void } define void @udiv() { ; CHECK-LABEL: 'udiv' ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %V2i64 = udiv <2 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V4i64 = udiv <4 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V8i64 = udiv <8 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V2i32 = udiv <2 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %V4i32 = udiv <4 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V6i32 = udiv <6 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V8i32 = udiv <8 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V16i32 = udiv <16 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i16 = udiv <2 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V4i16 = udiv <4 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V8i16 = udiv <8 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %V16i16 = udiv <16 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:32 CodeSize:4 Lat:4 SizeLat:4 for: %V32i16 = udiv <32 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i8 = udiv <2 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V4i8 = udiv <4 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %V6i8 = udiv <6 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V8i8 = udiv <8 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %V16i8 = udiv <16 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:32 CodeSize:4 Lat:4 SizeLat:4 for: %V32i8 = udiv <32 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:64 CodeSize:4 Lat:4 SizeLat:4 for: %V64i8 = udiv <64 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i64 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV4i64 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i64 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i32 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i32 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV8i32 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i32 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i16 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i16 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i16 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i16 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:32 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i16 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i8 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i8 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i8 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i8 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:32 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i8 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:64 CodeSize:4 Lat:4 SizeLat:4 for: %NV64i8 = udiv undef, undef ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V2i64 = udiv <2 x i64> undef, undef %V4i64 = udiv <4 x i64> undef, undef %V8i64 = udiv <8 x i64> undef, undef %V2i32 = udiv <2 x i32> undef, undef %V4i32 = udiv <4 x i32> undef, undef %V6i32 = udiv <6 x i32> undef, undef %V8i32 = udiv <8 x i32> undef, undef %V16i32 = udiv <16 x i32> undef, undef %V2i16 = udiv <2 x i16> undef, undef %V4i16 = udiv <4 x i16> undef, undef %V8i16 = udiv <8 x i16> undef, undef %V16i16 = udiv <16 x i16> undef, undef %V32i16 = udiv <32 x i16> undef, undef %V2i8 = udiv <2 x i8> undef, undef %V4i8 = udiv <4 x i8> undef, undef %V6i8 = udiv <6 x i8> undef, undef %V8i8 = udiv <8 x i8> undef, undef %V16i8 = udiv <16 x i8> undef, undef %V32i8 = udiv <32 x i8> undef, undef %V64i8 = udiv <64 x i8> undef, undef %NV2i64 = udiv undef, undef %NV4i64 = udiv undef, undef %NV8i64 = udiv undef, undef %NV2i32 = udiv undef, undef %NV4i32 = udiv undef, undef %NV8i32 = udiv undef, undef %NV16i32 = udiv undef, undef %NV2i16 = udiv undef, undef %NV4i16 = udiv undef, undef %NV8i16 = udiv undef, undef %NV16i16 = udiv undef, undef %NV32i16 = udiv undef, undef %NV2i8 = udiv undef, undef %NV4i8 = udiv undef, undef %NV8i8 = udiv undef, undef %NV16i8 = udiv undef, undef %NV32i8 = udiv undef, undef %NV64i8 = udiv undef, undef ret void } define void @sdiv_uniformconst() { ; CHECK-LABEL: 'sdiv_uniformconst' ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V2i64 = sdiv <2 x i64> undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %V4i64 = sdiv <4 x i64> undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:32 CodeSize:4 Lat:4 SizeLat:4 for: %V8i64 = sdiv <8 x i64> undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V2i32 = sdiv <2 x i32> undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V4i32 = sdiv <4 x i32> undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V8i32 = sdiv <8 x i32> undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:24 CodeSize:4 Lat:4 SizeLat:4 for: %V16i32 = sdiv <16 x i32> undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V2i16 = sdiv <2 x i16> undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V4i16 = sdiv <4 x i16> undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V8i16 = sdiv <8 x i16> undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V16i16 = sdiv <16 x i16> undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:24 CodeSize:4 Lat:4 SizeLat:4 for: %V32i16 = sdiv <32 x i16> undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V2i8 = sdiv <2 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V4i8 = sdiv <4 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V8i8 = sdiv <8 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V16i8 = sdiv <16 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V32i8 = sdiv <32 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:24 CodeSize:4 Lat:4 SizeLat:4 for: %V64i8 = sdiv <64 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i64 = sdiv undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:10 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i64 = sdiv undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:20 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i64 = sdiv undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i32 = sdiv undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i32 = sdiv undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:10 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i32 = sdiv undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:20 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i32 = sdiv undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i16 = sdiv undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i16 = sdiv undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i16 = sdiv undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:10 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i16 = sdiv undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:20 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i16 = sdiv undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i8 = sdiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i8 = sdiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i8 = sdiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i8 = sdiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:10 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i8 = sdiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:20 CodeSize:4 Lat:4 SizeLat:4 for: %NV64i8 = sdiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V2i64 = sdiv <2 x i64> undef, splat (i64 7) %V4i64 = sdiv <4 x i64> undef, splat (i64 7) %V8i64 = sdiv <8 x i64> undef, splat (i64 7) %V2i32 = sdiv <2 x i32> undef, splat (i32 7) %V4i32 = sdiv <4 x i32> undef, splat (i32 7) %V8i32 = sdiv <8 x i32> undef, splat (i32 7) %V16i32 = sdiv <16 x i32> undef, splat (i32 7) %V2i16 = sdiv <2 x i16> undef, splat (i16 7) %V4i16 = sdiv <4 x i16> undef, splat (i16 7) %V8i16 = sdiv <8 x i16> undef, splat (i16 7) %V16i16 = sdiv <16 x i16> undef, splat (i16 7) %V32i16 = sdiv <32 x i16> undef, splat (i16 7) %V2i8 = sdiv <2 x i8> undef, splat (i8 7) %V4i8 = sdiv <4 x i8> undef, splat (i8 7) %V8i8 = sdiv <8 x i8> undef, splat (i8 7) %V16i8 = sdiv <16 x i8> undef, splat (i8 7) %V32i8 = sdiv <32 x i8> undef, splat (i8 7) %V64i8 = sdiv <64 x i8> undef, splat (i8 7) %NV2i64 = sdiv undef, splat (i64 7) %NV4i64 = sdiv undef, splat (i64 7) %NV8i64 = sdiv undef, splat (i64 7) %NV2i32 = sdiv undef, splat (i32 7) %NV4i32 = sdiv undef, splat (i32 7) %NV8i32 = sdiv undef, splat (i32 7) %NV16i32 = sdiv undef, splat (i32 7) %NV2i16 = sdiv undef, splat (i16 7) %NV4i16 = sdiv undef, splat (i16 7) %NV8i16 = sdiv undef, splat (i16 7) %NV16i16 = sdiv undef, splat (i16 7) %NV32i16 = sdiv undef, splat (i16 7) %NV2i8 = sdiv undef, splat (i8 7) %NV4i8 = sdiv undef, splat (i8 7) %NV8i8 = sdiv undef, splat (i8 7) %NV16i8 = sdiv undef, splat (i8 7) %NV32i8 = sdiv undef, splat (i8 7) %NV64i8 = sdiv undef, splat (i8 7) ret void } define void @udiv_uniformconst() { ; CHECK-LABEL: 'udiv_uniformconst' ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V2i64 = udiv <2 x i64> undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V4i64 = udiv <4 x i64> undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:24 CodeSize:4 Lat:4 SizeLat:4 for: %V8i64 = udiv <8 x i64> undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i32 = udiv <2 x i32> undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V4i32 = udiv <4 x i32> undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V8i32 = udiv <8 x i32> undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:24 CodeSize:4 Lat:4 SizeLat:4 for: %V16i32 = udiv <16 x i32> undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i16 = udiv <2 x i16> undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V4i16 = udiv <4 x i16> undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V8i16 = udiv <8 x i16> undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V16i16 = udiv <16 x i16> undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:24 CodeSize:4 Lat:4 SizeLat:4 for: %V32i16 = udiv <32 x i16> undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i8 = udiv <2 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V4i8 = udiv <4 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V8i8 = udiv <8 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V16i8 = udiv <16 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V32i8 = udiv <32 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:24 CodeSize:4 Lat:4 SizeLat:4 for: %V64i8 = udiv <64 x i8> undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV2i64 = udiv undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i64 = udiv undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i64 = udiv undef, splat (i64 7) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV2i32 = udiv undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV4i32 = udiv undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i32 = udiv undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i32 = udiv undef, splat (i32 7) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV2i16 = udiv undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV4i16 = udiv undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV8i16 = udiv undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i16 = udiv undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i16 = udiv undef, splat (i16 7) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV2i8 = udiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV4i8 = udiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV8i8 = udiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV16i8 = udiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i8 = udiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV64i8 = udiv undef, splat (i8 7) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V2i64 = udiv <2 x i64> undef, splat (i64 7) %V4i64 = udiv <4 x i64> undef, splat (i64 7) %V8i64 = udiv <8 x i64> undef, splat (i64 7) %V2i32 = udiv <2 x i32> undef, splat (i32 7) %V4i32 = udiv <4 x i32> undef, splat (i32 7) %V8i32 = udiv <8 x i32> undef, splat (i32 7) %V16i32 = udiv <16 x i32> undef, splat (i32 7) %V2i16 = udiv <2 x i16> undef, splat (i16 7) %V4i16 = udiv <4 x i16> undef, splat (i16 7) %V8i16 = udiv <8 x i16> undef, splat (i16 7) %V16i16 = udiv <16 x i16> undef, splat (i16 7) %V32i16 = udiv <32 x i16> undef, splat (i16 7) %V2i8 = udiv <2 x i8> undef, splat (i8 7) %V4i8 = udiv <4 x i8> undef, splat (i8 7) %V8i8 = udiv <8 x i8> undef, splat (i8 7) %V16i8 = udiv <16 x i8> undef, splat (i8 7) %V32i8 = udiv <32 x i8> undef, splat (i8 7) %V64i8 = udiv <64 x i8> undef, splat (i8 7) %NV2i64 = udiv undef, splat (i64 7) %NV4i64 = udiv undef, splat (i64 7) %NV8i64 = udiv undef, splat (i64 7) %NV2i32 = udiv undef, splat (i32 7) %NV4i32 = udiv undef, splat (i32 7) %NV8i32 = udiv undef, splat (i32 7) %NV16i32 = udiv undef, splat (i32 7) %NV2i16 = udiv undef, splat (i16 7) %NV4i16 = udiv undef, splat (i16 7) %NV8i16 = udiv undef, splat (i16 7) %NV16i16 = udiv undef, splat (i16 7) %NV32i16 = udiv undef, splat (i16 7) %NV2i8 = udiv undef, splat (i8 7) %NV4i8 = udiv undef, splat (i8 7) %NV8i8 = udiv undef, splat (i8 7) %NV16i8 = udiv undef, splat (i8 7) %NV32i8 = udiv undef, splat (i8 7) %NV64i8 = udiv undef, splat (i8 7) ret void } define void @sdiv_uniformconstpow2() { ; CHECK-LABEL: 'sdiv_uniformconstpow2' ; CHECK-NEXT: Cost Model: Found costs of RThru:3 CodeSize:4 Lat:4 SizeLat:4 for: %V2i64 = sdiv <2 x i64> undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V4i64 = sdiv <4 x i64> undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V8i64 = sdiv <8 x i64> undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V2i32 = sdiv <2 x i32> undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V4i32 = sdiv <4 x i32> undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V8i32 = sdiv <8 x i32> undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %V16i32 = sdiv <16 x i32> undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V2i16 = sdiv <2 x i16> undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V4i16 = sdiv <4 x i16> undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V8i16 = sdiv <8 x i16> undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V16i16 = sdiv <16 x i16> undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %V32i16 = sdiv <32 x i16> undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V2i8 = sdiv <2 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V4i8 = sdiv <4 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V8i8 = sdiv <8 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V16i8 = sdiv <16 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V32i8 = sdiv <32 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %V64i8 = sdiv <64 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i64 = sdiv undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV4i64 = sdiv undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i64 = sdiv undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i32 = sdiv undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i32 = sdiv undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV8i32 = sdiv undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i32 = sdiv undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i16 = sdiv undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i16 = sdiv undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i16 = sdiv undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV16i16 = sdiv undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i16 = sdiv undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i8 = sdiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i8 = sdiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i8 = sdiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i8 = sdiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV32i8 = sdiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV64i8 = sdiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V2i64 = sdiv <2 x i64> undef, splat (i64 16) %V4i64 = sdiv <4 x i64> undef, splat (i64 16) %V8i64 = sdiv <8 x i64> undef, splat (i64 16) %V2i32 = sdiv <2 x i32> undef, splat (i32 16) %V4i32 = sdiv <4 x i32> undef, splat (i32 16) %V8i32 = sdiv <8 x i32> undef, splat (i32 16) %V16i32 = sdiv <16 x i32> undef, splat (i32 16) %V2i16 = sdiv <2 x i16> undef, splat (i16 16) %V4i16 = sdiv <4 x i16> undef, splat (i16 16) %V8i16 = sdiv <8 x i16> undef, splat (i16 16) %V16i16 = sdiv <16 x i16> undef, splat (i16 16) %V32i16 = sdiv <32 x i16> undef, splat (i16 16) %V2i8 = sdiv <2 x i8> undef, splat (i8 16) %V4i8 = sdiv <4 x i8> undef, splat (i8 16) %V8i8 = sdiv <8 x i8> undef, splat (i8 16) %V16i8 = sdiv <16 x i8> undef, splat (i8 16) %V32i8 = sdiv <32 x i8> undef, splat (i8 16) %V64i8 = sdiv <64 x i8> undef, splat (i8 16) %NV2i64 = sdiv undef, splat (i64 16) %NV4i64 = sdiv undef, splat (i64 16) %NV8i64 = sdiv undef, splat (i64 16) %NV2i32 = sdiv undef, splat (i32 16) %NV4i32 = sdiv undef, splat (i32 16) %NV8i32 = sdiv undef, splat (i32 16) %NV16i32 = sdiv undef, splat (i32 16) %NV2i16 = sdiv undef, splat (i16 16) %NV4i16 = sdiv undef, splat (i16 16) %NV8i16 = sdiv undef, splat (i16 16) %NV16i16 = sdiv undef, splat (i16 16) %NV32i16 = sdiv undef, splat (i16 16) %NV2i8 = sdiv undef, splat (i8 16) %NV4i8 = sdiv undef, splat (i8 16) %NV8i8 = sdiv undef, splat (i8 16) %NV16i8 = sdiv undef, splat (i8 16) %NV32i8 = sdiv undef, splat (i8 16) %NV64i8 = sdiv undef, splat (i8 16) ret void } define void @udiv_uniformconstpow2() { ; CHECK-LABEL: 'udiv_uniformconstpow2' ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V2i64 = udiv <2 x i64> undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %V4i64 = udiv <4 x i64> undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V8i64 = udiv <8 x i64> undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V2i32 = udiv <2 x i32> undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V4i32 = udiv <4 x i32> undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %V8i32 = udiv <8 x i32> undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V16i32 = udiv <16 x i32> undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V2i16 = udiv <2 x i16> undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V4i16 = udiv <4 x i16> undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V8i16 = udiv <8 x i16> undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %V16i16 = udiv <16 x i16> undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V32i16 = udiv <32 x i16> undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V2i8 = udiv <2 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V4i8 = udiv <4 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V8i8 = udiv <8 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %V16i8 = udiv <16 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %V32i8 = udiv <32 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V64i8 = udiv <64 x i8> undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i64 = udiv undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i64 = udiv undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV8i64 = udiv undef, splat (i64 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i32 = udiv undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i32 = udiv undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i32 = udiv undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV16i32 = udiv undef, splat (i32 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i16 = udiv undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i16 = udiv undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i16 = udiv undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i16 = udiv undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV32i16 = udiv undef, splat (i16 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i8 = udiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i8 = udiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i8 = udiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:1 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i8 = udiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:2 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i8 = udiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV64i8 = udiv undef, splat (i8 16) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V2i64 = udiv <2 x i64> undef, splat (i64 16) %V4i64 = udiv <4 x i64> undef, splat (i64 16) %V8i64 = udiv <8 x i64> undef, splat (i64 16) %V2i32 = udiv <2 x i32> undef, splat (i32 16) %V4i32 = udiv <4 x i32> undef, splat (i32 16) %V8i32 = udiv <8 x i32> undef, splat (i32 16) %V16i32 = udiv <16 x i32> undef, splat (i32 16) %V2i16 = udiv <2 x i16> undef, splat (i16 16) %V4i16 = udiv <4 x i16> undef, splat (i16 16) %V8i16 = udiv <8 x i16> undef, splat (i16 16) %V16i16 = udiv <16 x i16> undef, splat (i16 16) %V32i16 = udiv <32 x i16> undef, splat (i16 16) %V2i8 = udiv <2 x i8> undef, splat (i8 16) %V4i8 = udiv <4 x i8> undef, splat (i8 16) %V8i8 = udiv <8 x i8> undef, splat (i8 16) %V16i8 = udiv <16 x i8> undef, splat (i8 16) %V32i8 = udiv <32 x i8> undef, splat (i8 16) %V64i8 = udiv <64 x i8> undef, splat (i8 16) %NV2i64 = udiv undef, splat (i64 16) %NV4i64 = udiv undef, splat (i64 16) %NV8i64 = udiv undef, splat (i64 16) %NV2i32 = udiv undef, splat (i32 16) %NV4i32 = udiv undef, splat (i32 16) %NV8i32 = udiv undef, splat (i32 16) %NV16i32 = udiv undef, splat (i32 16) %NV2i16 = udiv undef, splat (i16 16) %NV4i16 = udiv undef, splat (i16 16) %NV8i16 = udiv undef, splat (i16 16) %NV16i16 = udiv undef, splat (i16 16) %NV32i16 = udiv undef, splat (i16 16) %NV2i8 = udiv undef, splat (i8 16) %NV4i8 = udiv undef, splat (i8 16) %NV8i8 = udiv undef, splat (i8 16) %NV16i8 = udiv undef, splat (i8 16) %NV32i8 = udiv undef, splat (i8 16) %NV64i8 = udiv undef, splat (i8 16) ret void } define void @sdiv_uniformconstnegpow2() { ; CHECK-LABEL: 'sdiv_uniformconstnegpow2' ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V2i64 = sdiv <2 x i64> undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %V4i64 = sdiv <4 x i64> undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %V8i64 = sdiv <8 x i64> undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i32 = sdiv <2 x i32> undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V4i32 = sdiv <4 x i32> undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:10 CodeSize:4 Lat:4 SizeLat:4 for: %V8i32 = sdiv <8 x i32> undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:20 CodeSize:4 Lat:4 SizeLat:4 for: %V16i32 = sdiv <16 x i32> undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i16 = sdiv <2 x i16> undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V4i16 = sdiv <4 x i16> undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V8i16 = sdiv <8 x i16> undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:10 CodeSize:4 Lat:4 SizeLat:4 for: %V16i16 = sdiv <16 x i16> undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:20 CodeSize:4 Lat:4 SizeLat:4 for: %V32i16 = sdiv <32 x i16> undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i8 = sdiv <2 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V4i8 = sdiv <4 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V8i8 = sdiv <8 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V16i8 = sdiv <16 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:10 CodeSize:4 Lat:4 SizeLat:4 for: %V32i8 = sdiv <32 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:20 CodeSize:4 Lat:4 SizeLat:4 for: %V64i8 = sdiv <64 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:3 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i64 = sdiv undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i64 = sdiv undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i64 = sdiv undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:3 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i32 = sdiv undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:3 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i32 = sdiv undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i32 = sdiv undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i32 = sdiv undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:3 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i16 = sdiv undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:3 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i16 = sdiv undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:3 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i16 = sdiv undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i16 = sdiv undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i16 = sdiv undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:3 CodeSize:4 Lat:4 SizeLat:4 for: %NV2i8 = sdiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:3 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i8 = sdiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:3 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i8 = sdiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:3 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i8 = sdiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i8 = sdiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %NV64i8 = sdiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V2i64 = sdiv <2 x i64> undef, splat (i64 -16) %V4i64 = sdiv <4 x i64> undef, splat (i64 -16) %V8i64 = sdiv <8 x i64> undef, splat (i64 -16) %V2i32 = sdiv <2 x i32> undef, splat (i32 -16) %V4i32 = sdiv <4 x i32> undef, splat (i32 -16) %V8i32 = sdiv <8 x i32> undef, splat (i32 -16) %V16i32 = sdiv <16 x i32> undef, splat (i32 -16) %V2i16 = sdiv <2 x i16> undef, splat (i16 -16) %V4i16 = sdiv <4 x i16> undef, splat (i16 -16) %V8i16 = sdiv <8 x i16> undef, splat (i16 -16) %V16i16 = sdiv <16 x i16> undef, splat (i16 -16) %V32i16 = sdiv <32 x i16> undef, splat (i16 -16) %V2i8 = sdiv <2 x i8> undef, splat (i8 -16) %V4i8 = sdiv <4 x i8> undef, splat (i8 -16) %V8i8 = sdiv <8 x i8> undef, splat (i8 -16) %V16i8 = sdiv <16 x i8> undef, splat (i8 -16) %V32i8 = sdiv <32 x i8> undef, splat (i8 -16) %V64i8 = sdiv <64 x i8> undef, splat (i8 -16) %NV2i64 = sdiv undef, splat (i64 -16) %NV4i64 = sdiv undef, splat (i64 -16) %NV8i64 = sdiv undef, splat (i64 -16) %NV2i32 = sdiv undef, splat (i32 -16) %NV4i32 = sdiv undef, splat (i32 -16) %NV8i32 = sdiv undef, splat (i32 -16) %NV16i32 = sdiv undef, splat (i32 -16) %NV2i16 = sdiv undef, splat (i16 -16) %NV4i16 = sdiv undef, splat (i16 -16) %NV8i16 = sdiv undef, splat (i16 -16) %NV16i16 = sdiv undef, splat (i16 -16) %NV32i16 = sdiv undef, splat (i16 -16) %NV2i8 = sdiv undef, splat (i8 -16) %NV4i8 = sdiv undef, splat (i8 -16) %NV8i8 = sdiv undef, splat (i8 -16) %NV16i8 = sdiv undef, splat (i8 -16) %NV32i8 = sdiv undef, splat (i8 -16) %NV64i8 = sdiv undef, splat (i8 -16) ret void } define void @udiv_uniformconstnegpow2() { ; CHECK-LABEL: 'udiv_uniformconstnegpow2' ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V2i64 = udiv <2 x i64> undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V4i64 = udiv <4 x i64> undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:24 CodeSize:4 Lat:4 SizeLat:4 for: %V8i64 = udiv <8 x i64> undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i32 = udiv <2 x i32> undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V4i32 = udiv <4 x i32> undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V8i32 = udiv <8 x i32> undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:24 CodeSize:4 Lat:4 SizeLat:4 for: %V16i32 = udiv <16 x i32> undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i16 = udiv <2 x i16> undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V4i16 = udiv <4 x i16> undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V8i16 = udiv <8 x i16> undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V16i16 = udiv <16 x i16> undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:24 CodeSize:4 Lat:4 SizeLat:4 for: %V32i16 = udiv <32 x i16> undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V2i8 = udiv <2 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V4i8 = udiv <4 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:5 CodeSize:4 Lat:4 SizeLat:4 for: %V8i8 = udiv <8 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:6 CodeSize:4 Lat:4 SizeLat:4 for: %V16i8 = udiv <16 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:12 CodeSize:4 Lat:4 SizeLat:4 for: %V32i8 = udiv <32 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:24 CodeSize:4 Lat:4 SizeLat:4 for: %V64i8 = udiv <64 x i8> undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV2i64 = udiv undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV4i64 = udiv undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i64 = udiv undef, splat (i64 -16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV2i32 = udiv undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV4i32 = udiv undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV8i32 = udiv undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i32 = udiv undef, splat (i32 -16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV2i16 = udiv undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV4i16 = udiv undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV8i16 = udiv undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV16i16 = udiv undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i16 = udiv undef, splat (i16 -16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV2i8 = udiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV4i8 = udiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV8i8 = udiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %NV16i8 = udiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:8 CodeSize:4 Lat:4 SizeLat:4 for: %NV32i8 = udiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:16 CodeSize:4 Lat:4 SizeLat:4 for: %NV64i8 = udiv undef, splat (i8 -16) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V2i64 = udiv <2 x i64> undef, splat (i64 -16) %V4i64 = udiv <4 x i64> undef, splat (i64 -16) %V8i64 = udiv <8 x i64> undef, splat (i64 -16) %V2i32 = udiv <2 x i32> undef, splat (i32 -16) %V4i32 = udiv <4 x i32> undef, splat (i32 -16) %V8i32 = udiv <8 x i32> undef, splat (i32 -16) %V16i32 = udiv <16 x i32> undef, splat (i32 -16) %V2i16 = udiv <2 x i16> undef, splat (i16 -16) %V4i16 = udiv <4 x i16> undef, splat (i16 -16) %V8i16 = udiv <8 x i16> undef, splat (i16 -16) %V16i16 = udiv <16 x i16> undef, splat (i16 -16) %V32i16 = udiv <32 x i16> undef, splat (i16 -16) %V2i8 = udiv <2 x i8> undef, splat (i8 -16) %V4i8 = udiv <4 x i8> undef, splat (i8 -16) %V8i8 = udiv <8 x i8> undef, splat (i8 -16) %V16i8 = udiv <16 x i8> undef, splat (i8 -16) %V32i8 = udiv <32 x i8> undef, splat (i8 -16) %V64i8 = udiv <64 x i8> undef, splat (i8 -16) %NV2i64 = udiv undef, splat (i64 -16) %NV4i64 = udiv undef, splat (i64 -16) %NV8i64 = udiv undef, splat (i64 -16) %NV2i32 = udiv undef, splat (i32 -16) %NV4i32 = udiv undef, splat (i32 -16) %NV8i32 = udiv undef, splat (i32 -16) %NV16i32 = udiv undef, splat (i32 -16) %NV2i16 = udiv undef, splat (i16 -16) %NV4i16 = udiv undef, splat (i16 -16) %NV8i16 = udiv undef, splat (i16 -16) %NV16i16 = udiv undef, splat (i16 -16) %NV32i16 = udiv undef, splat (i16 -16) %NV2i8 = udiv undef, splat (i8 -16) %NV4i8 = udiv undef, splat (i8 -16) %NV8i8 = udiv undef, splat (i8 -16) %NV16i8 = udiv undef, splat (i8 -16) %NV32i8 = udiv undef, splat (i8 -16) %NV64i8 = udiv undef, splat (i8 -16) ret void }