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
auxiliary
nvptx-kernel-abi
stack-protector
aarch64-naked-fn-no-bti-prolog.rs
aarch64-pointer-auth.rs
align_offset.rs Update the minimum external LLVM to 14 2023-02-10 16:06:25 -08:00
dwarf5.rs
is_aligned.rs Ignore LVI incompatible assembly tests on sgx platform 2023-03-10 16:04:37 +01:00
niche-prefer-zero.rs
nvptx-arch-default.rs
nvptx-arch-emit-asm.rs
nvptx-arch-link-arg.rs
nvptx-arch-target-cpu.rs
nvptx-atomics.rs
nvptx-internalizing.rs
nvptx-linking-binary.rs
nvptx-linking-cdylib.rs
nvptx-safe-naming.rs
panic-no-unwind-no-uwtable.rs
panic-unwind-no-uwtable.rs
pic-relocation-model.rs
pie-relocation-model.rs
sparc-struct-abi.rs
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
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
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
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
x86-stack-probes.rs