float k;
k = 10.10;
if (k <= 100.10)
{
k = 1.1;
}
Building file: ../main.c
Invoking: RISC-V GCC/Newlib C Compiler
riscv64-unknown-elf-gcc -g3 -gdwarf-2 -m32 -DUSE_PLIC -I"/home/microsemi/RISCV/Softconsole5.0.0.6/SC5.0.0.6/extras/workspace.examples/systick-blinky"
-I"/home/microsemi/RISCV/Softconsole5.0.0.6/SC5.0.0.6/extras/workspace.examples/systick-blinky/drivers/CoreGPIO"
-I"/home/microsemi/RISCV/Softconsole5.0.0.6/SC5.0.0.6/extras/workspace.examples/systick-blinky/drivers/CoreUARTapb"
-I"/home/microsemi/RISCV/Softconsole5.0.0.6/SC5.0.0.6/extras/workspace.examples/systick-blinky/hal"
-I"/home/microsemi/RISCV/Softconsole5.0.0.6/SC5.0.0.6/extras/workspace.examples/systick-blinky/riscv_hal"
-O0 -Wall -c -MMD -MP -MF"main.d" -MT"main.d" -march=RV32IM -mmuldiv -mfloat-abi=soft -o "main.o" "../main.c"
../main.c: In function 'main':
../main.c:81:1: error: unrecognizable insn:
}
^
(insn 14 13 15 2 (set (reg:SI 83)
(le:SI (reg:DF 72 [ _4 ])
(reg:DF 81))) ../main.c:55 -1
(nil))
../main.c:81:1: internal compiler error: in extract_insn, at recog.c:2287
0x8565dc5 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
/home/user/Downloads/riscv/riscv-gnu-toolchain/src/newlib-gcc/gcc/rtl-error.c:108
0x8565e23 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
/home/user/Downloads/riscv/riscv-gnu-toolchain/src/newlib-gcc/gcc/rtl-error.c:116
0x853ab1a extract_insn(rtx_insn*)
/home/user/Downloads/riscv/riscv-gnu-toolchain/src/newlib-gcc/gcc/recog.c:2287
0x8363845 instantiate_virtual_regs_in_insn
/home/user/Downloads/riscv/riscv-gnu-toolchain/src/newlib-gcc/gcc/function.c:1582
0x8363845 instantiate_virtual_regs
/home/user/Downloads/riscv/riscv-gnu-toolchain/src/newlib-gcc/gcc/function.c:1950
0x8363845 execute
/home/user/Downloads/riscv/riscv-gnu-toolchain/src/newlib-gcc/gcc/function.c:1999
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [main.o] Error 1
20:04:01 Build Finished (took 306ms)
Attached the sample code and detail log.That project is for use with SoftConsole v5.1 which we are releasing real soon now. Since v5.0 there have been changes to the RISC-V GCC tools, the command line options for different architectures/extensions/ABIs etc and to other components such as the RISC-V plugin etc.
These changes will be reflected in v5.1 and are also (prematurely!) reflected in the example project on the github.
Please bear with us until we release v5.1 and for now stick to the v5.0 example projects or derivatives of these.
Hope this helps/clarifies?
Regards
Tommy