rust/src/test
Simonas Kazlauskas d45378216b Change align_offset to support different strides
This is necessary if we want to implement `[T]::align_to` and is more
useful in general.

This implementation effort has begun during the All Hands and represents
a month of my futile efforts to do any sort of maths. Luckily, I
found the very very nice Chris McDonald (cjm) on IRC who figured out the
core formulas for me! All the thanks for existence of this PR go to
them!

Anyway… Those formulas were mangled by yours truly into the arcane forms
you see here to squeeze out the best assembly possible on most of the
modern architectures (x86 and ARM were evaluated in practice). I mean,
just look at it: *one actual* modulo operation and everything else is
just the cheap single cycle ops! Admitedly, the naive solution might be
faster in some common scenarios, but this code absolutely butchers the
naive solution on the worst case scenario.

Alas, the result of this arcane magic also means that the code pretty
heavily relies on the preconditions holding true and breaking those
preconditions will unleash the UB-est of all UBs! So don’t.
2018-05-17 22:46:02 +03:00
..
auxiliary Remove directory src/rt 2018-02-24 16:45:39 +03:00
codegen Introduce ConstValue and use it instead of miri's Value for constant values 2018-05-11 13:01:44 +02:00
codegen-units Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
compile-fail Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
compile-fail-fulldeps Fix stability annotations for already stable bits of proc macro API 1.1 2018-05-16 00:09:15 +03:00
debuginfo Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
incremental Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
incremental-fulldeps Rename must-compile-successfully into compile-pass 2018-04-13 23:28:03 +02:00
mir-opt Update mir-opt test to reflect change to MIR code-generation. 2018-05-04 13:17:13 +02:00
parse-fail Rollup merge of #49699 - zesterer:master, r=joshtriplett 2018-04-17 18:43:13 +02:00
pretty Remove all unstable placement features 2018-04-03 11:02:34 +02:00
run-fail Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
run-fail-fulldeps Remove syntax and syntax_pos thread locals 2018-03-14 11:56:01 +01:00
run-make Fix run-make wasm tests 2018-05-15 16:39:21 -07:00
run-make-fulldeps Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
run-pass Change align_offset to support different strides 2018-05-17 22:46:02 +03:00
run-pass-fulldeps Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
run-pass-valgrind
rustdoc Fix rustdoc panic with impl Trait in type parameters 2018-05-16 11:03:02 +09:00
rustdoc-js Fix invalid deduplication 2018-05-12 19:16:37 +02:00
rustdoc-ui drop unnecessary "warning" from warning text 2018-05-14 15:34:52 -05:00
rustfix test: Make a dedicated testsuite for rustfix 2018-05-04 15:01:28 -07:00
ui Auto merge of #50400 - ehuss:compiletest-revisions, r=alexcrichton 2018-05-17 08:29:11 +00:00
ui-fulldeps Fix update-references for tests within subdirectories. 2018-05-16 22:25:20 -07:00
COMPILER_TESTS.md Rename must-compile-successfully into compile-pass 2018-04-13 23:28:03 +02:00