llvm-project/mlir/test/Target/LLVMIR/global_float_array.mlir
Alexey Bataev cc0fecf619
[MLIR][MLIRToLLVM] Fix zero fp value to array translation (#160713)
The translator should not generate zeroinitilizer on fp all zero values,
since it may affect signedness of zeroes

Fixes #160437
2025-09-25 20:20:34 -04:00

5 lines
242 B
MLIR

// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
// CHECK: @test = internal global [1 x float] [float -0.000000e+00]
llvm.mlir.global internal @test(dense<-0.000000e+00> : tensor<1xf32>) {addr_space = 0 : i32} : !llvm.array<1 x f32>