rust/tests/codegen/asm
许杰友 Jieyou Xu (Joe) 1aa01927d3
Rollup merge of #131551 - taiki-e:ppc-asm-vreg-inout, r=Amanieu
Support input/output in vector registers of PowerPC inline assembly

This extends currently clobber-only vector registers (`vreg`) support to allow passing `#[repr(simd)]` types as input/output.

| Architecture | Register class | Target feature | Allowed types |
| ------------ | -------------- | -------------- | -------------- |
| PowerPC      | `vreg` | `altivec` | `i8x16`, `i16x8`, `i32x4`, `f32x4` |
| PowerPC      | `vreg` | `vsx` | `f32`, `f64`, `i64x2`, `f64x2` |

In addition to floats and `core::simd` types listed above, `core::arch` types and custom `#[repr(simd)]` types of the same size and type are also allowed. All allowed types and relevant target features are currently unstable.

r? `@Amanieu`

`@rustbot` label +O-PowerPC +A-inline-assembly
2024-11-30 12:57:32 +08:00
..
aarch64-clobbers.rs Fix handling of x18 in AArch64 inline assembly on ohos/trusty or with -Zfixed-x18 2024-11-26 03:10:22 +09:00
avr-clobbers.rs Move & rename test case to match naming of #132456 2024-11-28 16:12:04 +01:00
foo.s Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
global_asm_include.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
global_asm_x2.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
global_asm.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
goto.rs Make asm_goto_with_outputs a separate feature gate 2024-11-24 15:24:01 +00:00
hexagon-clobbers.rs Support predicate registers (clobber-only) in Hexagon inline assembly 2024-11-25 23:11:17 +09:00
may_unwind.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
maybe-uninit.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
msp430-clobbers.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
multiple-options.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
options.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
powerpc-clobbers.rs Support #[repr(simd)] types in input/output of PowerPC inline assembly 2024-11-29 00:24:36 +09:00
riscv-clobbers.rs Fix clobber_abi in RV32E and RV64E inline assembly 2024-11-25 00:36:22 +09:00
s390x-clobbers.rs Stabilize s390x inline assembly 2024-11-08 10:46:00 +09:00
sanitize-llvm.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
sparc-clobbers.rs Basic inline assembly support for SPARC and SPARC64 2024-11-07 21:19:03 +09:00
x86-clobber_abi.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
x86-clobbers.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00
x86-target-clobbers.rs Move remaining inline assembly test files into asm directory 2024-11-01 22:12:55 +09:00