tinygo/compiler/testdata
Ayke van Laethem c1d697f868 compiler: fix indices into strings and arrays
This PR fixes two bugs at once:

 1. Indices were incorrectly extended to a bigger type. Specifically,
    unsigned integers were sign extended and signed integers were zero
    extended. This commit swaps them around.
 2. The getelementptr instruction was given the raw index, even if it
    was a uint8 for example. However, getelementptr assumes the indices
    are signed, and therefore an index of uint8(200) was interpreted as
    an index of int8(-56).
2021-11-13 11:04:24 +01:00
..
basic.go compiler: properly implement div and rem operations 2021-10-28 15:55:02 +02:00
basic.ll compiler, runtime: add layout parameter to runtime.alloc 2021-11-02 22:16:15 +01:00
channel.go compiler: avoid zero-sized alloca in channel operations 2021-09-09 11:24:52 +02:00
channel.ll compiler, runtime: add layout parameter to runtime.alloc 2021-11-02 22:16:15 +01:00
float.go compiler: test float to int conversions and fix upper-bound calculation 2021-01-19 14:02:32 +01:00
float.ll compiler, runtime: add layout parameter to runtime.alloc 2021-11-02 22:16:15 +01:00
func.go compiler: add func tests 2021-04-12 12:07:42 +02:00
func.ll compiler, runtime: add layout parameter to runtime.alloc 2021-11-02 22:16:15 +01:00
gc.go compiler: add object layout information to heap allocations 2021-11-02 22:16:15 +01:00
gc.ll compiler: add object layout information to heap allocations 2021-11-02 22:16:15 +01: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 compiler: add object layout information to heap allocations 2021-11-02 22:16:15 +01:00
goroutine-cortex-m-qemu.ll targets: match LLVM triple to the one Clang uses 2021-11-05 09:42:00 +01:00
goroutine-wasm.ll compiler: change symbol name for string and packed data constants 2021-11-03 16:28:04 +01:00
goroutine.go compiler: add support for the go keyword on interface methods 2021-10-31 14:17:25 +01:00
interface.go compiler: simplify interface lowering 2021-10-31 14:17:25 +01:00
interface.ll compiler, runtime: add layout parameter to runtime.alloc 2021-11-02 22:16:15 +01:00
intrinsics-cortex-m-qemu.ll targets: match LLVM triple to the one Clang uses 2021-11-05 09:42:00 +01:00
intrinsics-wasm.ll compiler, runtime: add layout parameter to runtime.alloc 2021-11-02 22:16:15 +01: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 compiler, runtime: add layout parameter to runtime.alloc 2021-11-02 22:16:15 +01:00
pragma.go compiler: add function and global section pragmas 2021-06-24 15:00:30 +02:00
pragma.ll compiler, runtime: add layout parameter to runtime.alloc 2021-11-02 22:16:15 +01:00
slice.go compiler: add *ssa.MakeSlice bounds tests 2021-08-17 08:16:27 +02:00
slice.ll compiler: add object layout information to heap allocations 2021-11-02 22:16:15 +01:00
string.go compiler: fix indices into strings and arrays 2021-11-13 11:04:24 +01:00
string.ll compiler: fix indices into strings and arrays 2021-11-13 11:04:24 +01:00