19 lines · plain
1// RUN: mlir-opt %s --split-input-file -test-acc-support -verify-diagnostics2 3// Test emitNYI with a simple message4func.func @test_emit_nyi() {5 // expected-error @below {{not yet implemented: Unsupported feature in OpenACC}}6 %0 = memref.alloca() {test.emit_nyi = "Unsupported feature in OpenACC"} : memref<10xi32>7 return8}9 10// -----11 12// Test recipe name on load operation from scalar memref13func.func @test_recipe_load_scalar() {14 %0 = memref.alloca() : memref<i32>15 // expected-error @below {{not yet implemented: variable privatization (incomplete recipe name handling)}}16 %1 = memref.load %0[] {test.recipe_name = #acc.recipe_kind<private_recipe>} : memref<i32>17 return18}19