Skip to content

Commit df56632

Browse files
committed
target: support scalable vectors on arm64ec
This architecture is also AArch64, just with a different ABI, and so supports scalable vectors too.
1 parent c753cef commit df56632

File tree

1 file changed

+4
-5
lines changed
  • compiler/rustc_target/src/spec

1 file changed

+4
-5
lines changed

compiler/rustc_target/src/spec/mod.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,11 +1957,10 @@ impl Arch {
19571957
use Arch::*;
19581958

19591959
match self {
1960-
AArch64 | RiscV32 | RiscV64 => true,
1961-
AmdGpu | Arm | Arm64EC | Avr | Bpf | CSky | Hexagon | LoongArch32 | LoongArch64
1962-
| M68k | Mips | Mips32r6 | Mips64 | Mips64r6 | Msp430 | Nvptx64 | PowerPC
1963-
| PowerPC64 | S390x | Sparc | Sparc64 | SpirV | Wasm32 | Wasm64 | X86 | X86_64
1964-
| Xtensa | Other(_) => false,
1960+
Arm64EC | AArch64 | RiscV32 | RiscV64 => true,
1961+
AmdGpu | Arm | Avr | Bpf | CSky | Hexagon | LoongArch32 | LoongArch64 | M68k | Mips
1962+
| Mips32r6 | Mips64 | Mips64r6 | Msp430 | Nvptx64 | PowerPC | PowerPC64 | S390x
1963+
| Sparc | Sparc64 | SpirV | Wasm32 | Wasm64 | X86 | X86_64 | Xtensa | Other(_) => false,
19651964
}
19661965
}
19671966
}

0 commit comments

Comments
 (0)