brintos

brintos / llvm-project-archived public Read only

0
0
Text · 759 B · 2d8180a Raw
26 lines · plain
1// RUN: mlir-opt %s -test-lower-to-llvm | \2// RUN: %mcr_aarch64_cmd -e entry -entry-point-result=void  \3// RUN:   -shared-libs=%native_mlir_c_runner_utils,%native_mlir_arm_runner_utils \4// RUN:   -march=aarch64 -mattr=+sve | \5// RUN: FileCheck %s6 7func.func @entry() {8  %f1 = arith.constant 1.0 : f329  %f2 = arith.constant 2.0 : f3210  %v1 = vector.broadcast %f1 : f32 to vector<[4]xf32>11  %v2 = vector.broadcast %f2 : f32 to vector<[4]xf32>12  vector.print %v1 : vector<[4]xf32>13  vector.print %v2 : vector<[4]xf32>14  //15  // Test vectors:16  //17  // CHECK: ( 1, 1, 1, 118  // CHECK: ( 2, 2, 2, 219 20  %v3 = vector.interleave %v1, %v2 : vector<[4]xf32> -> vector<[8]xf32>21  vector.print %v3 : vector<[8]xf32>22  // CHECK: ( 1, 2, 1, 2, 1, 2, 1, 223 24  return25}26