1// RUN: mlir-opt -verify-diagnostics %s | mlir-opt | FileCheck %s 2 3func @avx512_mask_rndscale(%a: vector<16xf32>, %b: vector<8xf64>, %i32: i32, %i16: i16, %i8: i8) 4 -> (vector<16xf32>, vector<8xf64>) 5{ 6 // CHECK: avx512.mask.rndscale {{.*}}: vector<16xf32> 7 %0 = avx512.mask.rndscale %a, %i32, %a, %i16, %i32 : vector<16xf32> 8 // CHECK: avx512.mask.rndscale {{.*}}: vector<8xf64> 9 %1 = avx512.mask.rndscale %b, %i32, %b, %i8, %i32 : vector<8xf64> 10 return %0, %1: vector<16xf32>, vector<8xf64> 11} 12 13func @avx512_scalef(%a: vector<16xf32>, %b: vector<8xf64>, %i32: i32, %i16: i16, %i8: i8) 14 -> (vector<16xf32>, vector<8xf64>) 15{ 16 // CHECK: avx512.mask.scalef {{.*}}: vector<16xf32> 17 %0 = avx512.mask.scalef %a, %a, %a, %i16, %i32: vector<16xf32> 18 // CHECK: avx512.mask.scalef {{.*}}: vector<8xf64> 19 %1 = avx512.mask.scalef %b, %b, %b, %i8, %i32 : vector<8xf64> 20 return %0, %1: vector<16xf32>, vector<8xf64> 21} 22