tinygo/compiler/testdata
Ayke van Laethem bf9dab36f7 build: normalize target triples to match Clang
This commit changes a target triple like "armv6m-none-eabi" to
"armv6m-unknown-unknow-eabi". The reason is that while the former is
correctly parsed in Clang (due to normalization), it wasn't parsed
correctly in LLVM meaning that the environment wasn't set to EABI.

This change normalizes all target triples and uses the EABI environment
(-eabi in the triple) for Cortex-M targets.

This change also drops the `--target=` flag in the target JSON files,
the flag is now added implicitly in `(*compileopts.Config).CFlags()`.
This removes some duplication in target JSON files.

Unfortunately, this change also increases code size for Cortex-M
targets. It looks like LLVM now emits calls like __aeabi_memmove instead
of memmove, which pull in slightly more code (they basically just call
the regular C functions) and the calls themself don't seem to be as
efficient as they could be. Perhaps this is a LLVM bug that will be
fixed in the future, as this is a very common occurrence.
2021-09-28 18:44:11 +02:00
..
basic.go compiler: fix equally named structs in different scopes 2021-09-08 10:02:57 +02:00
basic.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
channel.go compiler: avoid zero-sized alloca in channel operations 2021-09-09 11:24:52 +02:00
channel.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
float.go compiler: test float to int conversions and fix upper-bound calculation 2021-01-19 14:02:32 +01:00
float.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
func.go compiler: add func tests 2021-04-12 12:07:42 +02:00
func.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
go1.17.go compiler: add support for new language features of Go 1.17 2021-08-30 09:18:58 +02:00
go1.17.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
goroutine-cortex-m-qemu.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
goroutine-wasm.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
goroutine.go compiler: add support for running a builtin in a goroutine 2021-05-26 20:21:08 +02:00
interface.go compiler: add interface IR test 2021-03-28 14:00:37 +02:00
interface.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
intrinsics-cortex-m-qemu.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
intrinsics-wasm.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
intrinsics.go compiler: move LLVM math builtin support into the compiler 2021-08-10 20:08:27 +02:00
pointer.go compiler: refactor and add tests 2021-01-15 14:43:43 +01:00
pointer.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
pragma.go compiler: add function and global section pragmas 2021-06-24 15:00:30 +02:00
pragma.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
slice.go compiler: add *ssa.MakeSlice bounds tests 2021-08-17 08:16:27 +02:00
slice.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
string.go compiler: optimize string literals and globals 2021-04-08 11:40:59 +02:00
string.ll build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00