Does Apple M4 support ARM SVE instructions?

It's said Apple M4 is an ARMv9 chip. I wrote assembly with ARM SVE instructions. And set an iPad M4 simulated device as running target. When execute, it throw "EXC_BAD_INSTRUCTION" error. Does Apple M4 support SVE?

Answered by DTS Engineer in 792141022
It's said Apple M4 is an ARMv9 chip

It is? Is there an Apple source for that info?

ps I’m not an Arm assembly language expert but, when I do hit problems like this, I generally reach for the Apple Silicon CPU Optimization Guide. This hasn’t been updated for M4 though.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer
It's said Apple M4 is an ARMv9 chip

It is? Is there an Apple source for that info?

ps I’m not an Arm assembly language expert but, when I do hit problems like this, I generally reach for the Apple Silicon CPU Optimization Guide. This hasn’t been updated for M4 though.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accoring to this comment in LLVM code, Apple M4 is ARMv9.2a without support for SVE.

// Technically apple-m4 is ARMv9.2a, but a quirk of LLVM defines v9.0 as // requiring SVE, which is optional according to the Arm ARM and not // supported by the core. ARMv8.7a is the next closest choice.

https://github.com/llvm/llvm-project/commit/2b33591386e855cf82a4104092e1a1d2888f32b1

Does Apple M4 support ARM SVE instructions?
 
 
Q