brintos

brintos / llvm-project-archived public Read only

0
0
Text · 523 B · 070d942 Raw
20 lines · plain
1// RUN: mlir-opt %s -split-input-file -allow-unregistered-dialect -verify-diagnostics | FileCheck %s2 3func.func @number_attr_f64() {4  "test.number_attr"() {5    // CHECK: attr = #complex.number<:f64 1.000000e+00, 0.000000e+00> : complex<f64>6    attr = #complex.number<:f64 1.0, 0.0>7  } : () -> ()8 9  return10}11 12func.func @number_attr_f32() {13  "test.number_attr"() {14    // CHECK: attr = #complex.number<:f32 1.000000e+00, 0.000000e+00> : complex<f32>15    attr = #complex.number<:f32 1.0, 0.0>16  } : () -> ()17 18  return19}20