about summary refs log tree commit diff
path: root/src/test/codegen/consts.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-56/+0
2022-07-04Avoid unnecessary 1-tuples in derived code.Nicholas Nethercote-1/+1
2022-05-25Update some codegen tests for opaque pointersNikita Popov-2/+2
2022-05-23Refactor call terminator to always hold a destination placeJakob Degen-1/+1
2022-03-23Update allocation idOli Scherer-1/+1
2022-02-20limit tests to llvm 14+Erik Desjardins-1/+1
2022-02-18Use undef for partially-uninit constants up to 1024 bytesErik Desjardins-2/+2
There needs to be some limit to avoid perf regressions on large arrays with undef in each element (see comment in the code).
2021-07-14bless mir-opt, codegen, and remaining ui testsRalf Jung-1/+1
2021-04-03Remove redundant `ignore-tidy-linelength` annotationsSimon Jakobi-1/+1
This is step 2 towards fixing #77548. In the codegen and codegen-units test suites, the `//` comment markers were kept in order not to affect any source locations. This is because these tests cannot be automatically `--bless`ed.
2020-09-20Make codegen test bitwidth-independentOliver Scherer-2/+2
2020-09-19Update codegen testsOliver Scherer-3/+3
2020-08-11move Deaggregate pass to post_borrowck_cleanupRalf Jung-2/+2
2020-04-20Fix codegen and mir-opt testsJonas Schievink-2/+2
Mostly renamed allocations, but I'm not sure about the const prop tests
2020-03-12support LLVM globals corresponding to miri allocationsChris Simpkins-2/+2
2020-01-11Make codegen tests wordsize independentOliver Scherer-7/+6
2020-01-10Promote `Ref`s to constants instead of staticSantiago Pastorino-3/+3
2019-12-02Update the minimum external LLVM to 7Josh Stone-1/+0
LLVM 7 is over a year old, which should be plenty for compatibility. The last LLVM 6 holdout was llvm-emscripten, which went away in #65501. I've also included a fix for LLVM 8 lacking `MemorySanitizerOptions`, which was broken by #66522.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-07-31Make globals with private linkage unnamed. Fixes #50862.Colin Pronovost-2/+2
2018-07-10Upgrade to LLVM's master branch (LLVM 7)Alex Crichton-2/+3
This commit upgrades the main LLVM submodule to LLVM's current master branch. The LLD submodule is updated in tandem as well as compiler-builtins. Along the way support was also added for LLVM 7's new features. This primarily includes the support for custom section concatenation natively in LLD so we now add wasm custom sections in LLVM IR rather than having custom support in rustc itself for doing so. Some other miscellaneous changes are: * We now pass `--gc-sections` to `wasm-ld` * The optimization level is now passed to `wasm-ld` * A `--stack-first` option is passed to LLD to have stack overflow always cause a trap instead of corrupting static data * The wasm target for LLVM switched to `wasm32-unknown-unknown`. * The syntax for aligned pointers has changed in LLVM IR and tests are updated to reflect this. * The `thumbv6m-none-eabi` target is disabled due to an [LLVM bug][llbug] Nowadays we've been mostly only upgrading whenever there's a major release of LLVM but enough changes have been happening on the wasm target that there's been growing motivation for quite some time now to upgrade out version of LLD. To upgrade LLD, however, we need to upgrade LLVM to avoid needing to build yet another version of LLVM on the builders. The revision of LLVM in use here is arbitrarily chosen. We will likely need to continue to update it over time if and when we discover bugs. Once LLVM 7 is fully released we can switch to that channel as well. [llbug]: https://bugs.llvm.org/show_bug.cgi?id=37382
2018-03-08Adjust test which differs between 32 bit and 64 bitOliver Schneider-2/+2
The differences are not part of what the test is testing, so they were simply removed.
2018-03-08Codegen testsOliver Schneider-5/+5
2017-11-19rustc: do not inject discriminant fields into Layout::General's variants.Eduard-Mihai Burtescu-2/+2
2017-11-19rustc_trans: always insert alignment padding, even before the first field.Eduard-Mihai Burtescu-2/+2
2017-11-19rustc_trans: use a predictable layout for constant ADTs.Eduard-Mihai Burtescu-2/+2
2016-10-21Adapt codegen test to new naming scheme for generated symbols.Michael Woerister-3/+3
2016-08-24Disable old trans access via -Z orbit, #[rustc_no_mir] or --disable-orbit.Eduard Burtescu-12/+8
2016-03-17Add #[rustc_no_mir] to make tests pass with -Z orbit.Eduard Burtescu-0/+5
2015-10-10Set proper alignment on constantsBjörn Steinbrink-0/+66
For enum variants, the default alignment for a specific variant might be lower than the alignment of the enum type itself. In such cases we, for example, generate memcpy calls with an alignment that's higher than the alignment of the constant we copy from. To avoid that, we need to explicitly set the required alignment on constants. Fixes #28912.