ARM NEON assembler error: “instruction cannot be conditional”

后端 未结 3 892
北恋
北恋 2021-01-22 20:13

According to the arm info center vadd can be executed condtitionally however when i try

vaddeq.f32 d0,d0,d1

Xcode returns

65:i         


        
3条回答
  •  心在旅途
    2021-01-22 20:58

    The reason why conditional NEON instructions are not available in ARM mode is because they use encodings with the condition field set to NV (never). You need to use conditional branches or (better) rewrite the code to not use the comparison results directly - e.g. set a register to 0 or 1 depending on the result and use its value in further operations.

提交回复
热议问题