Skip to content

Commit 69245c2

Browse files
authored
add test
1 parent f1718a9 commit 69245c2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// RUN: mlir-opt %s -finalize-memref-to-llvm 2>&1 | FileCheck %s
2+
// Since the error is at an unknown location, we use FileCheck instead of
3+
// -verify-diagnostics here
4+
5+
// CHECK: conversion of memref memory space #spirv.storage_class<StorageBuffer> to integer address space failed. Consider adding memory space conversions.
6+
// CHECK-LABEL: @issue_131439
7+
func.func @issue_131439(%arg0 : memref<i32>) {
8+
// CHECK: memref.alloca
9+
%alloca = memref.alloca() : memref<1x32x33xi32, #spirv.storage_class<StorageBuffer>>
10+
%c0 = arith.constant 0 : index
11+
// CHECK: memref.load
12+
%0 = memref.load %alloca[%c0, %c0, %c0] : memref<1x32x33xi32, #spirv.storage_class<StorageBuffer>>
13+
memref.store %0, %arg0[] : memref<i32>
14+
func.return
15+
}

0 commit comments

Comments
 (0)