roundtrip.mlir
916 Bytes
// RUN: mlir-opt -verify-diagnostics %s | mlir-opt | FileCheck %s
func @avx512_mask_rndscale(%a: vector<16xf32>, %b: vector<8xf64>, %i32: i32, %i16: i16, %i8: i8)
-> (vector<16xf32>, vector<8xf64>)
{
// CHECK: avx512.mask.rndscale {{.*}}: vector<16xf32>
%0 = avx512.mask.rndscale %a, %i32, %a, %i16, %i32 : vector<16xf32>
// CHECK: avx512.mask.rndscale {{.*}}: vector<8xf64>
%1 = avx512.mask.rndscale %b, %i32, %b, %i8, %i32 : vector<8xf64>
return %0, %1: vector<16xf32>, vector<8xf64>
}
func @avx512_scalef(%a: vector<16xf32>, %b: vector<8xf64>, %i32: i32, %i16: i16, %i8: i8)
-> (vector<16xf32>, vector<8xf64>)
{
// CHECK: avx512.mask.scalef {{.*}}: vector<16xf32>
%0 = avx512.mask.scalef %a, %a, %a, %i16, %i32: vector<16xf32>
// CHECK: avx512.mask.scalef {{.*}}: vector<8xf64>
%1 = avx512.mask.scalef %b, %b, %b, %i8, %i32 : vector<8xf64>
return %0, %1: vector<16xf32>, vector<8xf64>
}