Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Log started at: Tue Jan 17 01:24:15 CET 2023
- RetroPie-Setup version: 4.8.2 (c5e6417)
- System: i686 (i686) - Linux Mint 19.3 Tricia - Linux RetroArcade 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:37:04 UTC 2019 i686 i686 i686 GNU/Linux
- = = = = = = = = = = = = = = = = = = = = =
- Installing dependencies for 'lr-pcsx-rearmed' : Playstation emulator - PCSX (arm optimised) port for libretro
- = = = = = = = = = = = = = = = = = = = = =
- ~/RetroPie-Setup/tmp/build/lr-pcsx-rearmed ~/RetroPie-Setup
- = = = = = = = = = = = = = = = = = = = = =
- Getting sources for 'lr-pcsx-rearmed' : Playstation emulator - PCSX (arm optimised) port for libretro
- = = = = = = = = = = = = = = = = = = = = =
- Already on 'master'
- Your branch is up to date with 'origin/master'.
- Already up to date.
- HEAD is now in branch 'master' at commit 'aced3eb3fcaa0fe13c44c4dd196cdab42555fd98'
- ~/RetroPie-Setup
- ~/RetroPie-Setup/tmp/build/lr-pcsx-rearmed ~/RetroPie-Setup
- = = = = = = = = = = = = = = = = = = = = =
- Building 'lr-pcsx-rearmed' : Playstation emulator - PCSX (arm optimised) port for libretro
- = = = = = = = = = = = = = = = = = = = = =
- TARGET: pcsx_rearmed_libretro.so
- platform: unix
- ARCH: i686
- DYNAREC: lightrec
- BUILTIN_GPU: neon
- CC: cc
- CFLAGS: -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2
- MAIN_LDLIBS: -lpthread -lm -ldl
- rm -f pcsx_rearmed_libretro.so libpcsxcore/cdriso.o libpcsxcore/cdrom.o libpcsxcore/cheat.o libpcsxcore/database.o libpcsxcore/decode_xa.o libpcsxcore/mdec.o libpcsxcore/misc.o libpcsxcore/plugins.o libpcsxcore/ppf.o libpcsxcore/psxbios.o libpcsxcore/psxcommon.o libpcsxcore/psxcounters.o libpcsxcore/psxdma.o libpcsxcore/psxhle.o libpcsxcore/psxhw.o libpcsxcore/psxinterpreter.o libpcsxcore/psxmem.o libpcsxcore/r3000a.o libpcsxcore/sio.o libpcsxcore/spu.o libpcsxcore/gte.o libpcsxcore/gte_nf.o libpcsxcore/gte_divider.o deps/libchdr/deps/zlib-1.2.11/adler32.o deps/libchdr/deps/zlib-1.2.11/compress.o deps/libchdr/deps/zlib-1.2.11/crc32.o deps/libchdr/deps/zlib-1.2.11/deflate.o deps/libchdr/deps/zlib-1.2.11/gzclose.o deps/libchdr/deps/zlib-1.2.11/gzlib.o deps/libchdr/deps/zlib-1.2.11/gzread.o deps/libchdr/deps/zlib-1.2.11/gzwrite.o deps/libchdr/deps/zlib-1.2.11/infback.o deps/libchdr/deps/zlib-1.2.11/inffast.o deps/libchdr/deps/zlib-1.2.11/inflate.o deps/libchdr/deps/zlib-1.2.11/inftrees.o deps/libchdr/deps/zlib-1.2.11/trees.o deps/libchdr/deps/zlib-1.2.11/uncompr.o deps/libchdr/deps/zlib-1.2.11/zutil.o libpcsxcore/lightrec/mem.o deps/lightrec/tlsf/tlsf.o libpcsxcore/lightrec/plugin.o deps/lightning/lib/jit_disasm.o deps/lightning/lib/jit_memory.o deps/lightning/lib/jit_names.o deps/lightning/lib/jit_note.o deps/lightning/lib/jit_print.o deps/lightning/lib/jit_size.o deps/lightning/lib/lightning.o deps/lightrec/blockcache.o deps/lightrec/disassembler.o deps/lightrec/emitter.o deps/lightrec/interpreter.o deps/lightrec/lightrec.o deps/lightrec/memmanager.o deps/lightrec/optimizer.o deps/lightrec/regcache.o libpcsxcore/new_dynarec/emu_if.o plugins/dfsound/dma.o plugins/dfsound/freeze.o plugins/dfsound/registers.o plugins/dfsound/spu.o plugins/dfsound/out.o plugins/dfsound/nullsnd.o plugins/gpulib/gpu.o plugins/gpulib/vout_pl.o plugins/gpu_neon/psx_gpu_if.o plugins/gpu_neon/psx_gpu/psx_gpu_simd.o plugins/cdrcimg/cdrcimg.o deps/libchdr/deps/lzma-19.00/src/Alloc.o deps/libchdr/deps/lzma-19.00/src/Bra86.o deps/libchdr/deps/lzma-19.00/src/BraIA64.o deps/libchdr/deps/lzma-19.00/src/CpuArch.o deps/libchdr/deps/lzma-19.00/src/Delta.o deps/libchdr/deps/lzma-19.00/src/LzFind.o deps/libchdr/deps/lzma-19.00/src/Lzma86Dec.o deps/libchdr/deps/lzma-19.00/src/LzmaDec.o deps/libchdr/deps/lzma-19.00/src/LzmaEnc.o deps/libchdr/deps/lzma-19.00/src/Sort.o deps/libchdr/src/libchdr_bitstream.o deps/libchdr/src/libchdr_cdrom.o deps/libchdr/src/libchdr_chd.o deps/libchdr/src/libchdr_flac.o deps/libchdr/src/libchdr_huffman.o frontend/cspace.o frontend/libretro.o frontend/main.o frontend/plugin.o pcsx_rearmed_libretro.so.map frontend/revision.h
- TARGET: pcsx_rearmed_libretro.so
- platform: unix
- ARCH: i686
- DYNAREC: lightrec
- BUILTIN_GPU: neon
- CC: cc
- CFLAGS: -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2
- MAIN_LDLIBS: -lpthread -lm -ldl
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/cdriso.o libpcsxcore/cdriso.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/cdrom.o libpcsxcore/cdrom.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/cheat.o libpcsxcore/cheat.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/database.o libpcsxcore/database.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/decode_xa.o libpcsxcore/decode_xa.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/mdec.o libpcsxcore/mdec.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/misc.o libpcsxcore/misc.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/plugins.o libpcsxcore/plugins.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/ppf.o libpcsxcore/ppf.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-nonnull -c -o libpcsxcore/psxbios.o libpcsxcore/psxbios.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/psxcommon.o libpcsxcore/psxcommon.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/psxcounters.o libpcsxcore/psxcounters.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/psxdma.o libpcsxcore/psxdma.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/psxhle.o libpcsxcore/psxhle.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/psxhw.o libpcsxcore/psxhw.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/psxinterpreter.o libpcsxcore/psxinterpreter.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/psxmem.o libpcsxcore/psxmem.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/r3000a.o libpcsxcore/r3000a.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/sio.o libpcsxcore/sio.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/spu.o libpcsxcore/spu.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/gte.o libpcsxcore/gte.c
- cc -c -o libpcsxcore/gte_nf.o libpcsxcore/gte.c -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -DFLAGLESS
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/gte_divider.o libpcsxcore/gte_divider.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/adler32.o deps/libchdr/deps/zlib-1.2.11/adler32.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/compress.o deps/libchdr/deps/zlib-1.2.11/compress.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/crc32.o deps/libchdr/deps/zlib-1.2.11/crc32.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/deflate.o deps/libchdr/deps/zlib-1.2.11/deflate.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/gzclose.o deps/libchdr/deps/zlib-1.2.11/gzclose.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/gzlib.o deps/libchdr/deps/zlib-1.2.11/gzlib.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/gzread.o deps/libchdr/deps/zlib-1.2.11/gzread.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/gzwrite.o deps/libchdr/deps/zlib-1.2.11/gzwrite.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/infback.o deps/libchdr/deps/zlib-1.2.11/infback.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/inffast.o deps/libchdr/deps/zlib-1.2.11/inffast.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/inflate.o deps/libchdr/deps/zlib-1.2.11/inflate.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/inftrees.o deps/libchdr/deps/zlib-1.2.11/inftrees.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/trees.o deps/libchdr/deps/zlib-1.2.11/trees.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/uncompr.o deps/libchdr/deps/zlib-1.2.11/uncompr.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/libchdr/deps/zlib-1.2.11/zutil.o deps/libchdr/deps/zlib-1.2.11/zutil.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -D_GNU_SOURCE -c -o libpcsxcore/lightrec/mem.o libpcsxcore/lightrec/mem.c
- libpcsxcore/lightrec/mem.c:6:0: warning: "_GNU_SOURCE" redefined
- #define _GNU_SOURCE
- <command-line>:0:0: note: this is the location of the previous definition
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -c -o deps/lightrec/tlsf/tlsf.o deps/lightrec/tlsf/tlsf.c
- libpcsxcore/lightrec/mem.c: In function ‘mmap_huge’:
- libpcsxcore/lightrec/mem.c:53:40: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ [-Wformat=]
- printf("Hugetlb mmap to address 0x%lx succeeded\n", (uintptr_t) addr);
- ~~^ ~~~~~~~~~~~~~~~~
- %x
- libpcsxcore/lightrec/mem.c:59:40: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ [-Wformat=]
- printf("Regular mmap to address 0x%lx succeeded\n", (uintptr_t) addr);
- ~~^ ~~~~~~~~~~~~~~~~
- %x
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -c -o libpcsxcore/lightrec/plugin.o libpcsxcore/lightrec/plugin.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -DHAVE_MMAP -c -o deps/lightning/lib/jit_disasm.o deps/lightning/lib/jit_disasm.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -DHAVE_MMAP -c -o deps/lightning/lib/jit_memory.o deps/lightning/lib/jit_memory.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -DHAVE_MMAP -c -o deps/lightning/lib/jit_names.o deps/lightning/lib/jit_names.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -DHAVE_MMAP -c -o deps/lightning/lib/jit_note.o deps/lightning/lib/jit_note.c
- cc -march=native -O2 -DGIT_VERSION=\"" aced3eb"\" -fPIC -D_FILE_OFFSET_BITS=64 -msse2 -Wall -Iinclude -ffast-math -O2 -DNDEBUG -Ideps/libchdr/deps/zlib-1.2.11 -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CUSTOM_MAP=1 -DLIGHTREC_ENABLE_THREADED_COMPILER=0 -DGPU_NEON -Ideps/libchdr/include -Ideps/libchdr/include/libchdr -Ideps/libchdr/deps/lzma-19.00/include -DHAVE_CHD -D_7ZIP_ST -Ilibretro-common/include -DFRONTEND_SUPPORTS_RGB565 -DHAVE_LIBRETRO -DNO_FRONTEND -Wno-unused -Wno-unused-function -DHAVE_MMAP -c -o deps/lightning/lib/jit_print.o deps/lightning/lib/jit_print.c
- deps/lightning/lib/jit_print.c: In function ‘_jit_print_node’:
- deps/lightning/lib/jit_print.c:38:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ^
- deps/lightning/lib/jit_print.c:102:12:
- print_dec(node->v.w);
- ~~~~~~~~~
- deps/lightning/lib/jit_print.c:102:2: note: in expansion of macro ‘print_dec’
- print_dec(node->v.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:34:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "-0x%lx", -value); \
- ^ ~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- fprintf(print_stream, "0x%lx", value); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_flt(value) fprintf(print_stream, "%g", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_str(value) fprintf(print_stream, "%s", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_ptr(value) fprintf(print_stream, "%p", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_reg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- if ((value) & jit_regno_patch) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- print_str(_rvs[jit_regno(value)].name); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_arg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- print_chr('#'); \
- ~~~~~~~~~~~~~~~~~~~~~~~
- if (value) \
- ~~~~~~~~~~~~~~~~~~
- print_dec((value)->v.w); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- #include "jit_names.c"
- ~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- static FILE *print_stream;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Implementation
- ~~~~~~~~~~~~~~~~
- */
- ~~
- void
- ~~~~
- jit_init_print(void)
- ~~~~~~~~~~~~~~~~~~~~
- {
- ~
- if (!print_stream)
- ~~~~~~~~~~~~~~~~~~
- print_stream = stdout;
- ~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- void
- ~~~~
- _jit_print(jit_state_t *_jit)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_node_t *node;
- ~~~~~~~~~~~~~~~~~~
- if ((node = _jitc->head)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- for (node = node->next; node; node = node->next) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- void
- ~~~~
- _jit_print_node(jit_state_t *_jit, jit_node_t *node)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_block_t *block;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t value;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t offset;
- ~~~~~~~~~~~~~~~~~~~~~
- if (node->code == jit_code_label ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_prolog || node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(':');
- ~~~~~~~~~~~~~~~
- block = _jitc->blocks.ptr + node->v.w;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- for (offset = 0; offset < _jitc->reglen; offset++) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (jit_regset_tstbit(&block->reglive, offset)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- print_reg(offset);
- ~~~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- if (node->code == jit_code_prolog ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" /* ");
- ~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" */");
- ~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- }
- ~
- value = jit_classify(node->code) &
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (jit_cc_a0_int|jit_cc_a0_flt|jit_cc_a0_dbl|jit_cc_a0_jmp|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a0_reg|jit_cc_a0_rlh|jit_cc_a0_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a1_reg|jit_cc_a1_int|jit_cc_a1_flt|jit_cc_a1_dbl|jit_cc_a1_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a2_reg|jit_cc_a2_int|jit_cc_a2_flt|jit_cc_a2_dbl|jit_cc_a2_rlh);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_synth) && ((value & jit_cc_a0_jmp) ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishr ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishi))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ");
- ~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_chr('\t');
- ~~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_synth)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" \\__ ");
- ~~~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- switch (node->code) {
- ~~~~~~~~~~~~~~~~~~~~~
- r:
- ~~
- print_chr(' '); print_reg(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w:
- ~~
- print_chr(' '); print_hex(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:137:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->u.w); return;
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:36:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "0x%lx", value); \
- ^
- deps/lightning/lib/jit_print.c:137:32:
- print_chr(' '); print_hex(node->u.w); return;
- ~~~~~~~~~
- deps/lightning/lib/jit_print.c:137:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->u.w); return;
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:38:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ^
- deps/lightning/lib/jit_print.c:158:13:
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:158:3: note: in expansion of macro ‘print_dec’
- print_dec(node->u.n->v.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:38:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ^
- deps/lightning/lib/jit_print.c:52:6: note: in expansion of macro ‘print_dec’
- print_dec((value)->v.w); \
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:162:22: note: in expansion of macro ‘print_arg’
- print_chr(' '); print_arg(node); return;
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:34:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "-0x%lx", -value); \
- ^ ~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- fprintf(print_stream, "0x%lx", value); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_flt(value) fprintf(print_stream, "%g", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_str(value) fprintf(print_stream, "%s", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_ptr(value) fprintf(print_stream, "%p", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_reg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- if ((value) & jit_regno_patch) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- print_str(_rvs[jit_regno(value)].name); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_arg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- print_chr('#'); \
- ~~~~~~~~~~~~~~~~~~~~~~~
- if (value) \
- ~~~~~~~~~~~~~~~~~~
- print_dec((value)->v.w); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- #include "jit_names.c"
- ~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- static FILE *print_stream;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Implementation
- ~~~~~~~~~~~~~~~~
- */
- ~~
- void
- ~~~~
- jit_init_print(void)
- ~~~~~~~~~~~~~~~~~~~~
- {
- ~
- if (!print_stream)
- ~~~~~~~~~~~~~~~~~~
- print_stream = stdout;
- ~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- void
- ~~~~
- _jit_print(jit_state_t *_jit)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_node_t *node;
- ~~~~~~~~~~~~~~~~~~
- if ((node = _jitc->head)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- for (node = node->next; node; node = node->next) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- void
- ~~~~
- _jit_print_node(jit_state_t *_jit, jit_node_t *node)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_block_t *block;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t value;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t offset;
- ~~~~~~~~~~~~~~~~~~~~~
- if (node->code == jit_code_label ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_prolog || node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(':');
- ~~~~~~~~~~~~~~~
- block = _jitc->blocks.ptr + node->v.w;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- for (offset = 0; offset < _jitc->reglen; offset++) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (jit_regset_tstbit(&block->reglive, offset)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- print_reg(offset);
- ~~~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- if (node->code == jit_code_prolog ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" /* ");
- ~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" */");
- ~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- }
- ~
- value = jit_classify(node->code) &
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (jit_cc_a0_int|jit_cc_a0_flt|jit_cc_a0_dbl|jit_cc_a0_jmp|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a0_reg|jit_cc_a0_rlh|jit_cc_a0_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a1_reg|jit_cc_a1_int|jit_cc_a1_flt|jit_cc_a1_dbl|jit_cc_a1_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a2_reg|jit_cc_a2_int|jit_cc_a2_flt|jit_cc_a2_dbl|jit_cc_a2_rlh);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_synth) && ((value & jit_cc_a0_jmp) ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishr ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishi))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ");
- ~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_chr('\t');
- ~~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_synth)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" \\__ ");
- ~~~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- switch (node->code) {
- ~~~~~~~~~~~~~~~~~~~~~
- r:
- ~~
- print_chr(' '); print_reg(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w:
- ~~
- print_chr(' '); print_hex(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- f:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- n:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_node))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_ptr(node->u.p);
- ~~~~~~~~~~~~~~~~~~~~~
- else {
- ~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- a:
- ~~
- print_chr(' '); print_arg(node); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_w:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:168:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->v.w); return;
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:36:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "0x%lx", value); \
- ^
- deps/lightning/lib/jit_print.c:168:32:
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~
- deps/lightning/lib/jit_print.c:168:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->v.w); return;
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:38:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ^
- deps/lightning/lib/jit_print.c:52:6: note: in expansion of macro ‘print_dec’
- print_dec((value)->v.w); \
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:187:22: note: in expansion of macro ‘print_arg’
- print_chr(' '); print_arg(node->v.n);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:34:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "-0x%lx", -value); \
- ^ ~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- fprintf(print_stream, "0x%lx", value); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_flt(value) fprintf(print_stream, "%g", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_str(value) fprintf(print_stream, "%s", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_ptr(value) fprintf(print_stream, "%p", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_reg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- if ((value) & jit_regno_patch) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- print_str(_rvs[jit_regno(value)].name); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_arg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- print_chr('#'); \
- ~~~~~~~~~~~~~~~~~~~~~~~
- if (value) \
- ~~~~~~~~~~~~~~~~~~
- print_dec((value)->v.w); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- #include "jit_names.c"
- ~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- static FILE *print_stream;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Implementation
- ~~~~~~~~~~~~~~~~
- */
- ~~
- void
- ~~~~
- jit_init_print(void)
- ~~~~~~~~~~~~~~~~~~~~
- {
- ~
- if (!print_stream)
- ~~~~~~~~~~~~~~~~~~
- print_stream = stdout;
- ~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- void
- ~~~~
- _jit_print(jit_state_t *_jit)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_node_t *node;
- ~~~~~~~~~~~~~~~~~~
- if ((node = _jitc->head)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- for (node = node->next; node; node = node->next) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- void
- ~~~~
- _jit_print_node(jit_state_t *_jit, jit_node_t *node)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_block_t *block;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t value;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t offset;
- ~~~~~~~~~~~~~~~~~~~~~
- if (node->code == jit_code_label ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_prolog || node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(':');
- ~~~~~~~~~~~~~~~
- block = _jitc->blocks.ptr + node->v.w;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- for (offset = 0; offset < _jitc->reglen; offset++) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (jit_regset_tstbit(&block->reglive, offset)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- print_reg(offset);
- ~~~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- if (node->code == jit_code_prolog ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" /* ");
- ~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" */");
- ~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- }
- ~
- value = jit_classify(node->code) &
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (jit_cc_a0_int|jit_cc_a0_flt|jit_cc_a0_dbl|jit_cc_a0_jmp|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a0_reg|jit_cc_a0_rlh|jit_cc_a0_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a1_reg|jit_cc_a1_int|jit_cc_a1_flt|jit_cc_a1_dbl|jit_cc_a1_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a2_reg|jit_cc_a2_int|jit_cc_a2_flt|jit_cc_a2_dbl|jit_cc_a2_rlh);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_synth) && ((value & jit_cc_a0_jmp) ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishr ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishi))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ");
- ~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_chr('\t');
- ~~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_synth)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" \\__ ");
- ~~~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- switch (node->code) {
- ~~~~~~~~~~~~~~~~~~~~~
- r:
- ~~
- print_chr(' '); print_reg(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w:
- ~~
- print_chr(' '); print_hex(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- f:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- n:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_node))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_ptr(node->u.p);
- ~~~~~~~~~~~~~~~~~~~~~
- else {
- ~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- a:
- ~~
- print_chr(' '); print_arg(node); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_w:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_f:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_d:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_a:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- w_r:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:190:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->u.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:36:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "0x%lx", value); \
- ^
- deps/lightning/lib/jit_print.c:190:32:
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~
- deps/lightning/lib/jit_print.c:190:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->u.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:34:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "-0x%lx", -value); \
- ^ ~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- fprintf(print_stream, "0x%lx", value); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_flt(value) fprintf(print_stream, "%g", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_str(value) fprintf(print_stream, "%s", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_ptr(value) fprintf(print_stream, "%p", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_reg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- if ((value) & jit_regno_patch) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- print_str(_rvs[jit_regno(value)].name); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_arg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- print_chr('#'); \
- ~~~~~~~~~~~~~~~~~~~~~~~
- if (value) \
- ~~~~~~~~~~~~~~~~~~
- print_dec((value)->v.w); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- #include "jit_names.c"
- ~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- static FILE *print_stream;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Implementation
- ~~~~~~~~~~~~~~~~
- */
- ~~
- void
- ~~~~
- jit_init_print(void)
- ~~~~~~~~~~~~~~~~~~~~
- {
- ~
- if (!print_stream)
- ~~~~~~~~~~~~~~~~~~
- print_stream = stdout;
- ~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- void
- ~~~~
- _jit_print(jit_state_t *_jit)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_node_t *node;
- ~~~~~~~~~~~~~~~~~~
- if ((node = _jitc->head)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- for (node = node->next; node; node = node->next) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- void
- ~~~~
- _jit_print_node(jit_state_t *_jit, jit_node_t *node)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_block_t *block;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t value;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t offset;
- ~~~~~~~~~~~~~~~~~~~~~
- if (node->code == jit_code_label ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_prolog || node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(':');
- ~~~~~~~~~~~~~~~
- block = _jitc->blocks.ptr + node->v.w;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- for (offset = 0; offset < _jitc->reglen; offset++) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (jit_regset_tstbit(&block->reglive, offset)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- print_reg(offset);
- ~~~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- if (node->code == jit_code_prolog ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" /* ");
- ~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" */");
- ~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- }
- ~
- value = jit_classify(node->code) &
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (jit_cc_a0_int|jit_cc_a0_flt|jit_cc_a0_dbl|jit_cc_a0_jmp|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a0_reg|jit_cc_a0_rlh|jit_cc_a0_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a1_reg|jit_cc_a1_int|jit_cc_a1_flt|jit_cc_a1_dbl|jit_cc_a1_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a2_reg|jit_cc_a2_int|jit_cc_a2_flt|jit_cc_a2_dbl|jit_cc_a2_rlh);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_synth) && ((value & jit_cc_a0_jmp) ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishr ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishi))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ");
- ~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_chr('\t');
- ~~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_synth)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" \\__ ");
- ~~~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- switch (node->code) {
- ~~~~~~~~~~~~~~~~~~~~~
- r:
- ~~
- print_chr(' '); print_reg(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w:
- ~~
- print_chr(' '); print_hex(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- f:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- n:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_node))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_ptr(node->u.p);
- ~~~~~~~~~~~~~~~~~~~~~
- else {
- ~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- a:
- ~~
- print_chr(' '); print_arg(node); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_w:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_f:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_d:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_a:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- w_r:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_w:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:193:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->u.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:36:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "0x%lx", value); \
- ^
- deps/lightning/lib/jit_print.c:193:32:
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~
- deps/lightning/lib/jit_print.c:193:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->u.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:34:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "-0x%lx", -value); \
- ^ ~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- fprintf(print_stream, "0x%lx", value); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_flt(value) fprintf(print_stream, "%g", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_str(value) fprintf(print_stream, "%s", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_ptr(value) fprintf(print_stream, "%p", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_reg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- if ((value) & jit_regno_patch) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- print_str(_rvs[jit_regno(value)].name); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_arg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- print_chr('#'); \
- ~~~~~~~~~~~~~~~~~~~~~~~
- if (value) \
- ~~~~~~~~~~~~~~~~~~
- print_dec((value)->v.w); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- #include "jit_names.c"
- ~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- static FILE *print_stream;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Implementation
- ~~~~~~~~~~~~~~~~
- */
- ~~
- void
- ~~~~
- jit_init_print(void)
- ~~~~~~~~~~~~~~~~~~~~
- {
- ~
- if (!print_stream)
- ~~~~~~~~~~~~~~~~~~
- print_stream = stdout;
- ~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- void
- ~~~~
- _jit_print(jit_state_t *_jit)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_node_t *node;
- ~~~~~~~~~~~~~~~~~~
- if ((node = _jitc->head)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- for (node = node->next; node; node = node->next) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- void
- ~~~~
- _jit_print_node(jit_state_t *_jit, jit_node_t *node)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_block_t *block;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t value;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t offset;
- ~~~~~~~~~~~~~~~~~~~~~
- if (node->code == jit_code_label ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_prolog || node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(':');
- ~~~~~~~~~~~~~~~
- block = _jitc->blocks.ptr + node->v.w;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- for (offset = 0; offset < _jitc->reglen; offset++) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (jit_regset_tstbit(&block->reglive, offset)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- print_reg(offset);
- ~~~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- if (node->code == jit_code_prolog ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" /* ");
- ~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" */");
- ~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- }
- ~
- value = jit_classify(node->code) &
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (jit_cc_a0_int|jit_cc_a0_flt|jit_cc_a0_dbl|jit_cc_a0_jmp|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a0_reg|jit_cc_a0_rlh|jit_cc_a0_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a1_reg|jit_cc_a1_int|jit_cc_a1_flt|jit_cc_a1_dbl|jit_cc_a1_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a2_reg|jit_cc_a2_int|jit_cc_a2_flt|jit_cc_a2_dbl|jit_cc_a2_rlh);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_synth) && ((value & jit_cc_a0_jmp) ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishr ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishi))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ");
- ~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_chr('\t');
- ~~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_synth)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" \\__ ");
- ~~~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- switch (node->code) {
- ~~~~~~~~~~~~~~~~~~~~~
- r:
- ~~
- print_chr(' '); print_reg(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w:
- ~~
- print_chr(' '); print_hex(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- f:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- n:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_node))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_ptr(node->u.p);
- ~~~~~~~~~~~~~~~~~~~~~
- else {
- ~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- a:
- ~~
- print_chr(' '); print_arg(node); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_w:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_f:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_d:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_a:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- w_r:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_w:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:194:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->v.w); return;
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:36:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "0x%lx", value); \
- ^
- deps/lightning/lib/jit_print.c:194:32:
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~
- deps/lightning/lib/jit_print.c:194:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->v.w); return;
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:34:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "-0x%lx", -value); \
- ^ ~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- fprintf(print_stream, "0x%lx", value); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_flt(value) fprintf(print_stream, "%g", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_str(value) fprintf(print_stream, "%s", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_ptr(value) fprintf(print_stream, "%p", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_reg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- if ((value) & jit_regno_patch) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- print_str(_rvs[jit_regno(value)].name); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_arg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- print_chr('#'); \
- ~~~~~~~~~~~~~~~~~~~~~~~
- if (value) \
- ~~~~~~~~~~~~~~~~~~
- print_dec((value)->v.w); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- #include "jit_names.c"
- ~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- static FILE *print_stream;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Implementation
- ~~~~~~~~~~~~~~~~
- */
- ~~
- void
- ~~~~
- jit_init_print(void)
- ~~~~~~~~~~~~~~~~~~~~
- {
- ~
- if (!print_stream)
- ~~~~~~~~~~~~~~~~~~
- print_stream = stdout;
- ~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- void
- ~~~~
- _jit_print(jit_state_t *_jit)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_node_t *node;
- ~~~~~~~~~~~~~~~~~~
- if ((node = _jitc->head)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- for (node = node->next; node; node = node->next) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- void
- ~~~~
- _jit_print_node(jit_state_t *_jit, jit_node_t *node)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_block_t *block;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t value;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t offset;
- ~~~~~~~~~~~~~~~~~~~~~
- if (node->code == jit_code_label ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_prolog || node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(':');
- ~~~~~~~~~~~~~~~
- block = _jitc->blocks.ptr + node->v.w;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- for (offset = 0; offset < _jitc->reglen; offset++) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (jit_regset_tstbit(&block->reglive, offset)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- print_reg(offset);
- ~~~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- if (node->code == jit_code_prolog ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" /* ");
- ~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" */");
- ~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- }
- ~
- value = jit_classify(node->code) &
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (jit_cc_a0_int|jit_cc_a0_flt|jit_cc_a0_dbl|jit_cc_a0_jmp|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a0_reg|jit_cc_a0_rlh|jit_cc_a0_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a1_reg|jit_cc_a1_int|jit_cc_a1_flt|jit_cc_a1_dbl|jit_cc_a1_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a2_reg|jit_cc_a2_int|jit_cc_a2_flt|jit_cc_a2_dbl|jit_cc_a2_rlh);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_synth) && ((value & jit_cc_a0_jmp) ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishr ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishi))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ");
- ~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_chr('\t');
- ~~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_synth)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" \\__ ");
- ~~~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- switch (node->code) {
- ~~~~~~~~~~~~~~~~~~~~~
- r:
- ~~
- print_chr(' '); print_reg(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w:
- ~~
- print_chr(' '); print_hex(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- f:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- n:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_node))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_ptr(node->u.p);
- ~~~~~~~~~~~~~~~~~~~~~
- else {
- ~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- a:
- ~~
- print_chr(' '); print_arg(node); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_w:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_f:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_d:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_a:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- w_r:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_w:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_a:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:196:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->u.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:36:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "0x%lx", value); \
- ^
- deps/lightning/lib/jit_print.c:196:32:
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~
- deps/lightning/lib/jit_print.c:196:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->u.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:38:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ^
- deps/lightning/lib/jit_print.c:52:6: note: in expansion of macro ‘print_dec’
- print_dec((value)->v.w); \
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:197:22: note: in expansion of macro ‘print_arg’
- print_chr(' '); print_arg(node->v.n);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:38:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ^
- deps/lightning/lib/jit_print.c:52:6: note: in expansion of macro ‘print_dec’
- print_dec((value)->v.w); \
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:205:22: note: in expansion of macro ‘print_arg’
- print_chr(' '); print_arg(node->v.n);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:38:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ^
- deps/lightning/lib/jit_print.c:52:6: note: in expansion of macro ‘print_dec’
- print_dec((value)->v.w); \
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:213:22: note: in expansion of macro ‘print_arg’
- print_chr(' '); print_arg(node->v.n);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:34:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "-0x%lx", -value); \
- ^ ~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- fprintf(print_stream, "0x%lx", value); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_flt(value) fprintf(print_stream, "%g", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_str(value) fprintf(print_stream, "%s", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_ptr(value) fprintf(print_stream, "%p", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_reg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- if ((value) & jit_regno_patch) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- print_str(_rvs[jit_regno(value)].name); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_arg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- print_chr('#'); \
- ~~~~~~~~~~~~~~~~~~~~~~~
- if (value) \
- ~~~~~~~~~~~~~~~~~~
- print_dec((value)->v.w); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- #include "jit_names.c"
- ~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- static FILE *print_stream;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Implementation
- ~~~~~~~~~~~~~~~~
- */
- ~~
- void
- ~~~~
- jit_init_print(void)
- ~~~~~~~~~~~~~~~~~~~~
- {
- ~
- if (!print_stream)
- ~~~~~~~~~~~~~~~~~~
- print_stream = stdout;
- ~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- void
- ~~~~
- _jit_print(jit_state_t *_jit)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_node_t *node;
- ~~~~~~~~~~~~~~~~~~
- if ((node = _jitc->head)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- for (node = node->next; node; node = node->next) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- void
- ~~~~
- _jit_print_node(jit_state_t *_jit, jit_node_t *node)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_block_t *block;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t value;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t offset;
- ~~~~~~~~~~~~~~~~~~~~~
- if (node->code == jit_code_label ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_prolog || node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(':');
- ~~~~~~~~~~~~~~~
- block = _jitc->blocks.ptr + node->v.w;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- for (offset = 0; offset < _jitc->reglen; offset++) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (jit_regset_tstbit(&block->reglive, offset)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- print_reg(offset);
- ~~~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- if (node->code == jit_code_prolog ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" /* ");
- ~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" */");
- ~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- }
- ~
- value = jit_classify(node->code) &
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (jit_cc_a0_int|jit_cc_a0_flt|jit_cc_a0_dbl|jit_cc_a0_jmp|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a0_reg|jit_cc_a0_rlh|jit_cc_a0_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a1_reg|jit_cc_a1_int|jit_cc_a1_flt|jit_cc_a1_dbl|jit_cc_a1_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a2_reg|jit_cc_a2_int|jit_cc_a2_flt|jit_cc_a2_dbl|jit_cc_a2_rlh);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_synth) && ((value & jit_cc_a0_jmp) ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishr ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishi))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ");
- ~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_chr('\t');
- ~~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_synth)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" \\__ ");
- ~~~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- switch (node->code) {
- ~~~~~~~~~~~~~~~~~~~~~
- r:
- ~~
- print_chr(' '); print_reg(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w:
- ~~
- print_chr(' '); print_hex(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- f:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- n:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_node))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_ptr(node->u.p);
- ~~~~~~~~~~~~~~~~~~~~~
- else {
- ~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- a:
- ~~
- print_chr(' '); print_arg(node); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_w:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_f:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_d:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_a:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- w_r:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_w:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_a:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- f_a:
- ~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d_a:
- ~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_r_r:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r_w:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:222:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->w.w); return;
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:36:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "0x%lx", value); \
- ^
- deps/lightning/lib/jit_print.c:222:32:
- print_chr(' '); print_hex(node->w.w); return;
- ~~~~~~~~~
- deps/lightning/lib/jit_print.c:222:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->w.w); return;
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:34:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "-0x%lx", -value); \
- ^ ~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- fprintf(print_stream, "0x%lx", value); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_flt(value) fprintf(print_stream, "%g", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_str(value) fprintf(print_stream, "%s", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_ptr(value) fprintf(print_stream, "%p", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_reg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- if ((value) & jit_regno_patch) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- print_str(_rvs[jit_regno(value)].name); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_arg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- print_chr('#'); \
- ~~~~~~~~~~~~~~~~~~~~~~~
- if (value) \
- ~~~~~~~~~~~~~~~~~~
- print_dec((value)->v.w); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- #include "jit_names.c"
- ~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- static FILE *print_stream;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Implementation
- ~~~~~~~~~~~~~~~~
- */
- ~~
- void
- ~~~~
- jit_init_print(void)
- ~~~~~~~~~~~~~~~~~~~~
- {
- ~
- if (!print_stream)
- ~~~~~~~~~~~~~~~~~~
- print_stream = stdout;
- ~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- void
- ~~~~
- _jit_print(jit_state_t *_jit)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_node_t *node;
- ~~~~~~~~~~~~~~~~~~
- if ((node = _jitc->head)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- for (node = node->next; node; node = node->next) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- void
- ~~~~
- _jit_print_node(jit_state_t *_jit, jit_node_t *node)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_block_t *block;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t value;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t offset;
- ~~~~~~~~~~~~~~~~~~~~~
- if (node->code == jit_code_label ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_prolog || node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(':');
- ~~~~~~~~~~~~~~~
- block = _jitc->blocks.ptr + node->v.w;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- for (offset = 0; offset < _jitc->reglen; offset++) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (jit_regset_tstbit(&block->reglive, offset)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- print_reg(offset);
- ~~~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- if (node->code == jit_code_prolog ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" /* ");
- ~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" */");
- ~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- }
- ~
- value = jit_classify(node->code) &
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (jit_cc_a0_int|jit_cc_a0_flt|jit_cc_a0_dbl|jit_cc_a0_jmp|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a0_reg|jit_cc_a0_rlh|jit_cc_a0_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a1_reg|jit_cc_a1_int|jit_cc_a1_flt|jit_cc_a1_dbl|jit_cc_a1_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a2_reg|jit_cc_a2_int|jit_cc_a2_flt|jit_cc_a2_dbl|jit_cc_a2_rlh);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_synth) && ((value & jit_cc_a0_jmp) ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishr ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishi))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ");
- ~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_chr('\t');
- ~~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_synth)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" \\__ ");
- ~~~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- switch (node->code) {
- ~~~~~~~~~~~~~~~~~~~~~
- r:
- ~~
- print_chr(' '); print_reg(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w:
- ~~
- print_chr(' '); print_hex(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- f:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- n:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_node))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_ptr(node->u.p);
- ~~~~~~~~~~~~~~~~~~~~~
- else {
- ~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- a:
- ~~
- print_chr(' '); print_arg(node); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_w:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_f:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_d:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_a:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- w_r:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_w:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_a:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- f_a:
- ~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d_a:
- ~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_r_r:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r_w:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- q_r_r:
- ~~~~~~
- print_str(" ("); print_reg(node->u.q.l);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->u.q.h);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(") "); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- q_r_w:
- ~~~~~~
- print_str(" ("); print_reg(node->u.q.l);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->u.q.h);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(") "); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:232:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->w.w); return;
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:36:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "0x%lx", value); \
- ^
- deps/lightning/lib/jit_print.c:232:32:
- print_chr(' '); print_hex(node->w.w); return;
- ~~~~~~~~~
- deps/lightning/lib/jit_print.c:232:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->w.w); return;
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:34:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "-0x%lx", -value); \
- ^ ~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- fprintf(print_stream, "0x%lx", value); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_flt(value) fprintf(print_stream, "%g", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_str(value) fprintf(print_stream, "%s", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_ptr(value) fprintf(print_stream, "%p", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_reg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- if ((value) & jit_regno_patch) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- print_str(_rvs[jit_regno(value)].name); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_arg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- print_chr('#'); \
- ~~~~~~~~~~~~~~~~~~~~~~~
- if (value) \
- ~~~~~~~~~~~~~~~~~~
- print_dec((value)->v.w); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- #include "jit_names.c"
- ~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- static FILE *print_stream;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Implementation
- ~~~~~~~~~~~~~~~~
- */
- ~~
- void
- ~~~~
- jit_init_print(void)
- ~~~~~~~~~~~~~~~~~~~~
- {
- ~
- if (!print_stream)
- ~~~~~~~~~~~~~~~~~~
- print_stream = stdout;
- ~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- void
- ~~~~
- _jit_print(jit_state_t *_jit)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_node_t *node;
- ~~~~~~~~~~~~~~~~~~
- if ((node = _jitc->head)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- for (node = node->next; node; node = node->next) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- void
- ~~~~
- _jit_print_node(jit_state_t *_jit, jit_node_t *node)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_block_t *block;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t value;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t offset;
- ~~~~~~~~~~~~~~~~~~~~~
- if (node->code == jit_code_label ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_prolog || node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(':');
- ~~~~~~~~~~~~~~~
- block = _jitc->blocks.ptr + node->v.w;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- for (offset = 0; offset < _jitc->reglen; offset++) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (jit_regset_tstbit(&block->reglive, offset)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- print_reg(offset);
- ~~~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- if (node->code == jit_code_prolog ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" /* ");
- ~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" */");
- ~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- }
- ~
- value = jit_classify(node->code) &
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (jit_cc_a0_int|jit_cc_a0_flt|jit_cc_a0_dbl|jit_cc_a0_jmp|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a0_reg|jit_cc_a0_rlh|jit_cc_a0_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a1_reg|jit_cc_a1_int|jit_cc_a1_flt|jit_cc_a1_dbl|jit_cc_a1_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a2_reg|jit_cc_a2_int|jit_cc_a2_flt|jit_cc_a2_dbl|jit_cc_a2_rlh);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_synth) && ((value & jit_cc_a0_jmp) ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishr ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishi))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ");
- ~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_chr('\t');
- ~~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_synth)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" \\__ ");
- ~~~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- switch (node->code) {
- ~~~~~~~~~~~~~~~~~~~~~
- r:
- ~~
- print_chr(' '); print_reg(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w:
- ~~
- print_chr(' '); print_hex(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- f:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- n:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_node))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_ptr(node->u.p);
- ~~~~~~~~~~~~~~~~~~~~~
- else {
- ~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- a:
- ~~
- print_chr(' '); print_arg(node); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_w:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_f:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_d:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_a:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- w_r:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_w:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_a:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- f_a:
- ~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d_a:
- ~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_r_r:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r_w:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- q_r_r:
- ~~~~~~
- print_str(" ("); print_reg(node->u.q.l);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->u.q.h);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(") "); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- q_r_w:
- ~~~~~~
- print_str(" ("); print_reg(node->u.q.l);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->u.q.h);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(") "); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r_q:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ("); print_reg(node->w.q.l);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->w.q.h);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(") "); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~
- r_w_q:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:241:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->v.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:36:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "0x%lx", value); \
- ^
- deps/lightning/lib/jit_print.c:241:32:
- print_chr(' '); print_hex(node->v.w);
- ~~~~~~~~~
- deps/lightning/lib/jit_print.c:241:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->v.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:34:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "-0x%lx", -value); \
- ^ ~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- fprintf(print_stream, "0x%lx", value); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_flt(value) fprintf(print_stream, "%g", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_str(value) fprintf(print_stream, "%s", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_ptr(value) fprintf(print_stream, "%p", value)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- #define print_reg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- if ((value) & jit_regno_patch) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- print_str(_rvs[jit_regno(value)].name); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- #define print_arg(value) \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- do { \
- ~~~~~~~~~~~~~
- print_chr('#'); \
- ~~~~~~~~~~~~~~~~~~~~~~~
- if (value) \
- ~~~~~~~~~~~~~~~~~~
- print_dec((value)->v.w); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- print_chr('?'); \
- ~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- #include "jit_names.c"
- ~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Initialization
- ~~~~~~~~~~~~~~~~
- */
- ~~
- static FILE *print_stream;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- /*
- ~~
- * Implementation
- ~~~~~~~~~~~~~~~~
- */
- ~~
- void
- ~~~~
- jit_init_print(void)
- ~~~~~~~~~~~~~~~~~~~~
- {
- ~
- if (!print_stream)
- ~~~~~~~~~~~~~~~~~~
- print_stream = stdout;
- ~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- void
- ~~~~
- _jit_print(jit_state_t *_jit)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_node_t *node;
- ~~~~~~~~~~~~~~~~~~
- if ((node = _jitc->head)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- for (node = node->next; node; node = node->next) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- jit_print_node(node);
- ~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- print_chr('\n');
- ~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- void
- ~~~~
- _jit_print_node(jit_state_t *_jit, jit_node_t *node)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {
- ~
- jit_block_t *block;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t value;
- ~~~~~~~~~~~~~~~~~~~~
- jit_int32_t offset;
- ~~~~~~~~~~~~~~~~~~~~~
- if (node->code == jit_code_label ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_prolog || node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(':');
- ~~~~~~~~~~~~~~~
- block = _jitc->blocks.ptr + node->v.w;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- for (offset = 0; offset < _jitc->reglen; offset++) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (jit_regset_tstbit(&block->reglive, offset)) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- print_reg(offset);
- ~~~~~~~~~~~~~~~~~~
- }
- ~
- }
- ~
- if (node->code == jit_code_prolog ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_epilog) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" /* ");
- ~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" */");
- ~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- }
- ~
- value = jit_classify(node->code) &
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (jit_cc_a0_int|jit_cc_a0_flt|jit_cc_a0_dbl|jit_cc_a0_jmp|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a0_reg|jit_cc_a0_rlh|jit_cc_a0_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a1_reg|jit_cc_a1_int|jit_cc_a1_flt|jit_cc_a1_dbl|jit_cc_a1_arg|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- jit_cc_a2_reg|jit_cc_a2_int|jit_cc_a2_flt|jit_cc_a2_dbl|jit_cc_a2_rlh);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_synth) && ((value & jit_cc_a0_jmp) ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishr ||
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- node->code == jit_code_finishi))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ");
- ~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_chr('\t');
- ~~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_synth)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" \\__ ");
- ~~~~~~~~~~~~~~~~~~~~
- print_str(code_name[node->code]);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- switch (node->code) {
- ~~~~~~~~~~~~~~~~~~~~~
- r:
- ~~
- print_chr(' '); print_reg(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w:
- ~~
- print_chr(' '); print_hex(node->u.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- f:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- n:
- ~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (!(node->flag & jit_flag_node))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_ptr(node->u.p);
- ~~~~~~~~~~~~~~~~~~~~~
- else {
- ~~~~~~
- print_chr('L');
- ~~~~~~~~~~~~~~~
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- }
- ~
- return;
- ~~~~~~~
- a:
- ~~
- print_chr(' '); print_arg(node); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_w:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_f:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_d:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->v.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->v.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_a:
- ~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- w_r:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_w:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- w_a:
- ~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- f_a:
- ~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.f);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- d_a:
- ~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->u.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->u.d);
- ~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_arg(node->v.n);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_r_r:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r_w:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- q_r_r:
- ~~~~~~
- print_str(" ("); print_reg(node->u.q.l);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->u.q.h);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(") "); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- q_r_w:
- ~~~~~~
- print_str(" ("); print_reg(node->u.q.l);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->u.q.h);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(") "); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->w.w); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- r_r_q:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ("); print_reg(node->w.q.l);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->w.q.h);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(") "); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~
- r_w_q:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_hex(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(" ("); print_reg(node->w.q.l);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->w.q.h);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_str(") "); return;
- ~~~~~~~~~~~~~~~~~~~~~~~~
- r_r_f:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float32_t *)node->w.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->w.f);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- r_r_d:
- ~~~~~~
- print_chr(' '); print_reg(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' '); print_reg(node->v.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_chr(' ');
- ~~~~~~~~~~~~~~~
- if (node->flag & jit_flag_data)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- print_flt(*(jit_float64_t *)node->w.n->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- else
- ~~~~
- print_flt(node->w.d);
- ~~~~~~~~~~~~~~~~~~~~~
- return;
- ~~~~~~~
- w_r_r:
- ~~~~~~
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:264:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->u.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:36:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "0x%lx", value); \
- ^
- deps/lightning/lib/jit_print.c:264:32:
- print_chr(' '); print_hex(node->u.w);
- ~~~~~~~~~
- deps/lightning/lib/jit_print.c:264:22: note: in expansion of macro ‘print_hex’
- print_chr(' '); print_hex(node->u.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:38:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ^
- deps/lightning/lib/jit_print.c:273:13:
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:273:3: note: in expansion of macro ‘print_dec’
- print_dec(node->u.n->v.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:38:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- #define print_dec(value) fprintf(print_stream, "%ld", value)
- ^
- deps/lightning/lib/jit_print.c:283:13:
- print_dec(node->u.n->v.w);
- ~~~~~~~~~~~~~~
- deps/lightning/lib/jit_print.c:283:3: note: in expansion of macro ‘print_dec’
- print_dec(node->u.n->v.w);
- ^~~~~~~~~
- deps/lightning/lib/jit_print.c:34:28: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘jit_word_t {aka int}’ [-Wformat=]
- fprintf(print_stream, "-0x%lx", -value); \
- ^ ~~~~~~~~~~~~
- else \
- ~~~~~~~~~~~~~
- fprintf(print_stream, "0x%lx", value); \
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- } while (0)
- ~~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment