arm: Use vmov.i32 instead of vmov on neon memchr

clang fails with:

  error: invalid instruction
This commit is contained in:
Adhemerval Zanella 2022-08-09 17:22:58 -03:00
parent 83fa6708c5
commit 7cb1206fbe
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ ENTRY(memchr)
vpadd.i8 vdata1_0, vdata1_0, vdata1_1
vpadd.i8 vdata0_0, vdata0_0, vdata1_0
vpadd.i8 vdata0_0, vdata0_0, vdata0_0
vmov synd, vdata0_0[0]
vmov.i32 synd, vdata0_0[0]
/* Clear the soff lower bits */
lsr synd, synd, soff
@ -166,7 +166,7 @@ ENTRY(memchr)
vpadd.i8 vdata1_0, vdata1_0, vdata1_1
vpadd.i8 vdata0_0, vdata0_0, vdata1_0
vpadd.i8 vdata0_0, vdata0_0, vdata0_0
vmov synd, vdata0_0[0]
vmov.i32 synd, vdata0_0[0]
cbz synd, .Lnotfound
bhi .Ltail /* Uses the condition code from
subs cntin, cntin, #32 above. */