ARM NEON assembler error: “instruction cannot be conditional”

后端 未结 3 889
北恋
北恋 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:56

    The ARM Architecture Reference Manual says:

     An ARM Advanced SIMD VADD instruction must be unconditional.
    

    I.e., if you're in ARM mode, those instructions are not conditional. You can use them conditionally in Thumb-2 if you put them in an IT block.

      .syntax unified
      .code 16
      .globl _foo
    _foo:
      cmp r0, #0
      it eq
      vaddeq.f32 d0, d0, d1
      bx lr
    

提交回复
热议问题