summaryrefslogtreecommitdiff
path: root/mlir/test/Dialect/Complex/attribute.mlir
blob: 070d942fd87e2bfe224f84dbf58f759c785a37e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: mlir-opt %s -split-input-file -allow-unregistered-dialect -verify-diagnostics | FileCheck %s

func.func @number_attr_f64() {
  "test.number_attr"() {
    // CHECK: attr = #complex.number<:f64 1.000000e+00, 0.000000e+00> : complex<f64>
    attr = #complex.number<:f64 1.0, 0.0>
  } : () -> ()

  return
}

func.func @number_attr_f32() {
  "test.number_attr"() {
    // CHECK: attr = #complex.number<:f32 1.000000e+00, 0.000000e+00> : complex<f32>
    attr = #complex.number<:f32 1.0, 0.0>
  } : () -> ()

  return
}