brintos

brintos / llvm-project-archived public Read only

0
0
Text · 421 B · 9deac08 Raw
14 lines · plain
1// Bug: #1312792// RUN: mlir-opt --test-scf-pipelining %s | FileCheck %s3// CHECK: fold_div_index_neg_rhs4// CHECK-NEXT: %c0 = arith.constant 0 : index5// CHECK-NEXT: %0 = shape.div %c0, %c0 : index, index -> index6// CHECK-NEXT: return %0 : index7module {8  func.func @fold_div_index_neg_rhs() -> index {9    %c0 = arith.constant 0 : index10    %0 = shape.div %c0, %c0 : index, index -> index11    return %0 : index12  }13}14