brintos

brintos / llvm-project-archived public Read only

0
0
Text · 468 B · b4e3da9 Raw
14 lines · plain
1// RUN: mlir-opt %s --gpu-to-llvm | FileCheck %s2 3module {4  // CHECK-LABEL: func @func5  // CHECK-SAME: %[[IN:.*]]: vector<11xf32>6  func.func @func(%arg: vector<11xf32>) -> vector<11xf32> {7    %cst_41 = arith.constant dense<true> : vector<11xi1>8    // CHECK-NOT: vector.mask9    // CHECK: return %[[IN]] : vector<11xf32>10    %127 = vector.mask %cst_41 { vector.yield %arg : vector<11xf32> } : vector<11xi1> -> vector<11xf32>11    return %127 : vector<11xf32>12  }13}14