llvm-project
llvm-project copied to clipboard
This fork of the canonical git mirror of the LLVM subversion repository adds (e)Z80 targets. Please refer to the wiki for important build instructions.
`__bf16` is commonly implemented as a storage format, allowing for a 32bit float to be stored in 16bits. It has the same layout/format as `float`, but with the lower 16...
`llvm-zig` branch cannot be compiled: ``` FAILED: tools/lldb/source/Plugins/SymbolFile/DWARF/CMakeFiles/lldbPluginSymbolFileDWARF.dir/DWARFASTParserZig.cpp.o /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DHAVE_ROUND -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/workspace/user/repos/github.com/jacobly0/llvm-project/build2/tools/lldb/source/Plugins/SymbolFile/DWARF -I/workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source/Plugins/SymbolFile/DWARF -I/workspace/user/repos/github.com/jacobly0/llvm-project/lldb/include -I/workspace/user/repos/github.com/jacobly0/llvm-project/build2/tools/lldb/include -I/workspace/user/repos/github.com/jacobly0/llvm-project/build2/include -I/workspace/user/repos/github.com/jacobly0/llvm-project/llvm/include -I/usr/include/python3.10 -I/workspace/user/repos/github.com/jacobly0/llvm-project/llvm/../clang/include -I/workspace/user/repos/github.com/jacobly0/llvm-project/build2/tools/lldb/../clang/include -I/workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source -I/workspace/user/repos/github.com/jacobly0/llvm-project/build2/tools/lldb/source -isystem /usr/include/libxml2...
ZDS II defines wchar_t as follows: ``` #ifndef WCHAR_T_DEFINED #define WCHAR_T_DEFINED typedef unsigned short wchar_t; #endif ``` Meanwhile in ez80-clang, it's defined as SignedShort: https://github.com/jacobly0/llvm-project/blob/005a99ce2569373524bd881207aa4a1e98a2b238/clang/lib/Basic/Targets/Z80.h#L36 This type is unlikely to...
putting 0x22 into an unsigned char array is causing me a problem compiling this with -S ``` static unsigned char works[] = {0x01, 0x02, 0x03}; static unsigned char fails[] =...
## Absolute value All of them synthesize the operation (poorly) - [ ] `int8_t` - [ ] `int16_t` - [ ] `int24_t` - [ ] `int32_t` - [ ] `int48_t`...
Demonstration: https://discord.com/channels/432891584451706892/1184990251769397380/1305595574246182952 > Compiling c -std=gnu11 in `-Oz` for ez80: > ```cpp > int48_t foo(int48_t x) { return ~x; } > ``` > ```avrasm > public _foo > _foo: >...
If you click on any of the links on https://github.com/jacobly0/llvm-project/wiki then you get an error.
This can be worked around using Binutils (Z80 ELF) and `sed`.