blob: 533b992f8dff6fafbde859793faa2ff335bb545a [file] [log] [blame]
Thomasf0f64ca2022-03-30 10:38:01 -07001func.func @add_f16() {
Jakub Kuderski812eac92023-06-02 15:10:12 -04002 %0 = util.unfoldable_constant dense<[1.500000e+00, 2.000000e+00, 3.000000e+00, 4.199220e+00]> : tensor<4xf16>
3 %1 = util.unfoldable_constant dense<[5.000000e+00, 6.199210e+00, 7.000000e+00, 8.101560e+00]> : tensor<4xf16>
4 %2 = stablehlo.add %0, %1 : tensor<4xf16>
5 check.expect_almost_eq_const(%2, dense<[6.500000e+00, 8.203130e+00, 1.000000e+01, 1.229690e+01]> : tensor<4xf16>) : tensor<4xf16>
Thomas10f5eaf2021-03-31 10:22:20 -07006 return
7}