armv7 to armv6

Guest #1848790
Rate this post
• ▲ useful
▼ not useful
Hi all

I have a problem: I want to compile an iPhone app! Now may problem. When 
I want to compile it I get the error, what the following code isn't for 
an armv6. That's right because it's written for armv7. Now could I all 
port to armv6 except this code. Please can someone make it for me?

.thumb
.globl _rgba_bgra_copy
.thumb_func
_rgba_bgra_copy:
    pld [r1, #32]

    vld4.u8 {d0[0], d1[0], d2[0], d3[0]}, [r1]!
    vld4.u8 {d0[1], d1[1], d2[1], d3[1]}, [r1]!
    vld4.u8 {d0[2], d1[2], d2[2], d3[2]}, [r1]!
    vld4.u8 {d0[3], d1[3], d2[3], d3[3]}, [r1]!
    vld4.u8 {d0[4], d1[4], d2[4], d3[4]}, [r1]!
    vld4.u8 {d0[5], d1[5], d2[5], d3[5]}, [r1]!
    vld4.u8 {d0[6], d1[6], d2[6], d3[6]}, [r1]!
    vld4.u8 {d0[7], d1[7], d2[7], d3[7]}, [r1]!

    vswp d0, d2

    vst4.u8 {d0[0], d1[0], d2[0], d3[0]}, [r0]!
    vst4.u8 {d0[1], d1[1], d2[1], d3[1]}, [r0]!
    vst4.u8 {d0[2], d1[2], d2[2], d3[2]}, [r0]!
    vst4.u8 {d0[3], d1[3], d2[3], d3[3]}, [r0]!
    vst4.u8 {d0[4], d1[4], d2[4], d3[4]}, [r0]!
    vst4.u8 {d0[5], d1[5], d2[5], d3[5]}, [r0]!
    vst4.u8 {d0[6], d1[6], d2[6], d3[6]}, [r0]!
    vst4.u8 {d0[7], d1[7], d2[7], d3[7]}, [r0]!

    cmp r1, r2
    blt _rgba_bgra_copy
    bx lr

Thanks a lot!!!

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.