rust/compiler/rustc_target/src
Matthias Krüger fd9d961ed8
Rollup merge of #130873 - taiki-e:ppc64-atomic, r=Amanieu
rustc_target: Add powerpc64 atomic-related features

This adds the following two target features to unstable powerpc_target_feature.

- `partword-atomics`: 8-bit and 16-bit atomic instructions (`l{b,h}arx` and `st{b,h}cx.`) ([definition in LLVM](https://github.com/llvm/llvm-project/blob/llvmorg-19.1.0/llvm/lib/Target/PowerPC/PPC.td#L170-L172))
- `quadword-atomics`: 128-bit atomic instructions (`lqarx` and `stqcx.`) ([definition in LLVM](https://github.com/llvm/llvm-project/blob/llvmorg-19.1.0/llvm/lib/Target/PowerPC/PPC.td#L173-L175))

Both features are [available on power8+](https://github.com/llvm/llvm-project/blob/llvmorg-19.1.0/llvm/lib/Target/PowerPC/PPC.td#L408-L422), so enabled by default for `powerpc64le-*` targets.

r? `@Amanieu`

`@rustbot` label +O-PowerPC
2024-09-27 19:08:00 +02:00
..
abi Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
asm Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
spec Rollup merge of #130435 - madsmtm:move-apple-link-args, r=petrochenkov 2024-09-27 19:07:59 +02:00
json.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
lib.rs update cfgs 2024-09-05 17:24:01 +01:00
target_features.rs rustc_target: Add powerpc64 atomic-related features 2024-09-26 16:43:04 +09:00
tests.rs Use serde_json for target spec json 2022-06-03 16:46:19 +00:00