rust/tests/assembly
bors 22a7a19f93 Auto merge of #98112 - saethlin:mir-alignment-checks, r=oli-obk
Insert alignment checks for pointer dereferences when debug assertions are enabled

Closes https://github.com/rust-lang/rust/issues/54915

- [x] Jake tells me this sounds like a place to use `MirPatch`, but I can't figure out how to insert a new basic block with a new terminator in the middle of an existing basic block, using `MirPatch`. (if nobody else backs up this point I'm checking this as "not actually a good idea" because the code looks pretty clean to me after rearranging it a bit)
- [x] Using `CastKind::PointerExposeAddress` is definitely wrong, we don't want to expose. Calling a function to get the pointer address seems quite excessive. ~I'll see if I can add a new `CastKind`.~ `CastKind::Transmute` to the rescue!
- [x] Implement a more helpful panic message like slice bounds checking.

r? `@oli-obk`
2023-03-31 08:50:35 +00:00
..
asm Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nvptx-kernel-abi Move /src/test to /tests 2023-01-11 09:32:08 +00:00
stack-protector Move /src/test to /tests 2023-01-11 09:32:08 +00:00
aarch64-naked-fn-no-bti-prolog.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
aarch64-pointer-auth.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
align_offset.rs Update the minimum external LLVM to 14 2023-02-10 16:06:25 -08:00
dwarf5.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
is_aligned.rs Ignore LVI incompatible assembly tests on sgx platform 2023-03-10 16:04:37 +01:00
niche-prefer-zero.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nvptx-arch-default.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nvptx-arch-emit-asm.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nvptx-arch-link-arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nvptx-arch-target-cpu.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nvptx-atomics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nvptx-internalizing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nvptx-linking-binary.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nvptx-linking-cdylib.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nvptx-safe-naming.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-no-unwind-no-uwtable.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-unwind-no-uwtable.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pic-relocation-model.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pie-relocation-model.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
sparc-struct-abi.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-relocation-model.rs Add ignore-debug to static-relocation-model test 2023-03-29 09:54:01 -04:00
strict_provenance.rs Ignore LVI incompatible assembly tests on sgx platform 2023-03-10 16:04:37 +01:00
target-feature-multiple.rs Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
x86_64-floating-point-clamp.rs Ignore LVI incompatible assembly tests on sgx platform 2023-03-10 16:04:37 +01:00
x86_64-fortanix-unknown-sgx-lvi-generic-load.rs Fix LVI generic load test 2023-03-10 16:01:40 +01:00
x86_64-fortanix-unknown-sgx-lvi-generic-ret.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
x86_64-fortanix-unknown-sgx-lvi-inline-assembly.rs Fix LVI inline assembly test 2023-03-10 16:04:21 +01:00
x86_64-naked-fn-no-cet-prolog.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
x86_64-no-jump-tables.rs Ignore LVI incompatible assembly tests on sgx platform 2023-03-10 16:04:37 +01:00
x86_64-sse_crc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
x86-stack-probes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00