1// RUN: mlir-opt %s -convert-vector-to-llvm="enable-avx512" | 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>, vector<16xf32>, vector<8xf64>) 5{ 6 // CHECK: llvm_avx512.mask.rndscale.ps.512 7 %0 = avx512.mask.rndscale %a, %i32, %a, %i16, %i32: vector<16xf32> 8 // CHECK: llvm_avx512.mask.rndscale.pd.512 9 %1 = avx512.mask.rndscale %b, %i32, %b, %i8, %i32: vector<8xf64> 10 11 // CHECK: llvm_avx512.mask.scalef.ps.512 12 %2 = avx512.mask.scalef %a, %a, %a, %i16, %i32: vector<16xf32> 13 // CHECK: llvm_avx512.mask.scalef.pd.512 14 %3 = avx512.mask.scalef %b, %b, %b, %i8, %i32: vector<8xf64> 15 16 // Keep results alive. 17 return %0, %1, %2, %3 : vector<16xf32>, vector<8xf64>, vector<16xf32>, vector<8xf64> 18} 19