Skip to content

-Ofast might cause problems? #29

@ZERICO2005

Description

@ZERICO2005

-Oz emitted ___mulsc3 (related to complex multiplication), so I tried to fix it by adding -Ofast:

C:/msys64/ucrt64/bin/mingw32-make.exe -C floating_point/float32_math/
mingw32-make[1]: Entering directory 'C:/Users/zerico/Programming/ez80/toolchain/test/floating_point/float32_math'
[cc] src/main.cpp
[lto] obj/lto.bc
fatal error: error in backend: unable to legalize instruction: %23:_(s32) = nnan ninf nsz arcp contract afn
      reassoc G_FLDEXP %19:_, %22:_(s24) (in function: _ZNSt3__16__math7__hypotB8nn190107IfEET_S2_S2_S2_)
PLEASE submit a bug report to https://github.com/CE-Programming/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: C:\\Users\\zerico\\Programming\\ez80\\toolchain\\CEdev\\bin\\ez80-clang.exe -S -mllvm -profile-guided-section-prefix=false -mllvm -z80-gas-style -ffunction-sections -fdata-sections -fno-addrsig -fno-autolink -fno-threadsafe-statics -Wall -Wextra -Wshadow -Wimplicit-float-conversion -Wimplicit-int-float-conversion -Ofast C:/Users/zerico/Programming/ez80/toolchain/test/floating_point/float32_math/obj/lto.bc -o C:/Users/zerico/Programming/ez80/toolchain/test/floating_point/float32_math/obj/lto.s
1.      Code generation
2.      Running pass 'Function Pass Manager' on module 'C:/Users/zerico/Programming/ez80/toolchain/test/floating_point/float32_math/obj/lto.bc'.
3.      Running pass 'Legalizer' on function '@_ZNSt3__16__math7__hypotB8nn190107IfEET_S2_S2_S2_'
Exception Code: 0xE0000046
0x75722404, C:\WINDOWS\System32\KERNELBASE.dll(0x00000000755C0000) + 0x162404 byte(s), RaiseException() + 0x64 byte(s)
0x007837D6, C:\Users\zerico\Programming\ez80\toolchain\CEdev\bin\ez80-clang.exe(0x00000000004D0000) + 0x2B37D6 byte(s)
0x01000000, C:\Users\zerico\Programming\ez80\toolchain\CEdev\bin\ez80-clang.exe(0x00000000004D0000) + 0xB30000 byte(s)
0x656C0100 <unknown module>
ez80-clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 17.0.6 (https://github.com/CE-Programming/llvm-project 262d0ad4ac4c788b0e865b638c397598e797c12c)
Target: ez80
Thread model: posix
InstalledDir: C:\Users\zerico\Programming\ez80\toolchain\CEdev\bin
ez80-clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.
mingw32-make[1]: *** [C:\Users\zerico\Programming\ez80\toolchain\CEdev\meta\makefile.mk:445: obj/lto.s] Error 1
mingw32-make[1]: Leaving directory 'C:/Users/zerico/Programming/ez80/toolchain/test/floating_point/float32_math'
mingw32-make: *** [makefile:10: floating_point/float32_math/makefile] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions