llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.51k stars 11.3k forks source link

MIPS: -msingle-float doesn't work with O32 #93052

Open wzssyqa opened 2 months ago

wzssyqa commented 2 months ago
double f (double x, double y) {
        return x + y;
}
$ ./bin/clang --target=mipsel-linux-gnu -mabi=32 -msingle-float -O2 -c -S zz.c
SoftenFloatOperand Op #0: t52: i32 = MipsISD::ExtractElementF64 t13, Constant:i32<1>

fatal error: error in backend: Do not know how to soften this operator's operand!
llvmbot commented 2 months ago

@llvm/issue-subscribers-backend-mips

Author: YunQiang Su (wzssyqa)

```C double f (double x, double y) { return x + y; } ``` ``` $ ./bin/clang --target=mipsel-linux-gnu -mabi=32 -msingle-float -O2 -c -S zz.c SoftenFloatOperand Op #0: t52: i32 = MipsISD::ExtractElementF64 t13, Constant:i32<1> fatal error: error in backend: Do not know how to soften this operator's operand! ```