Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Something
Wednesday, July 15th, 2009 at 7:41:13am UTC 

  1. beagleboard at 500MHz
  2.  
  3. calling all these functions with loop counter set to 500000000
  4.  
  5. a1
  6.  
  7. real    0m49.235s
  8. user    0m45.617s
  9. sys     0m3.609s
  10.  
  11. a2
  12.  
  13. real    0m46.012s
  14. user    0m42.711s
  15. sys     0m3.289s
  16.  
  17. b1
  18.  
  19. real    0m56.712s
  20. user    0m52.656s
  21. sys     0m4.047s
  22.  
  23. b2
  24.  
  25. real    0m32.085s
  26. user    0m29.805s
  27. sys     0m2.250s
  28.  
  29. /********************************************************************************/
  30.  
  31.     .text
  32.     .global a1
  33.     .global a2
  34.     .global b1
  35.     .global b2
  36.     .fpu neon
  37.  
  38. a1:
  39.     mov     r2, #0
  40. 1:
  41.     vadd.i32 d0, d0, d1
  42.     vmov.32 ip, d0[0]
  43.  
  44.     .rept 25
  45.     add     r5, r5, #0
  46.     add     r6, r6, #0
  47.     .endr
  48.  
  49.     add     r2, r2, ip
  50.     subs    r0, r0, #1
  51.     bgt     1b
  52.     bx      lr
  53.  
  54. a2:
  55.     mov     r2, #0
  56. 1:
  57.     vadd.i32 d0, d0, d1
  58.  
  59.     .rept 20
  60.     add     r5, r5, #0
  61.     add     r6, r6, #0
  62.     .endr
  63.  
  64.     vmov.32 ip, d0[0]
  65.  
  66.     .rept 5
  67.     add     r5, r5, #0
  68.     add     r6, r6, #0
  69.     .endr
  70.  
  71.     add     r2, r2, ip
  72.     subs    r0, r0, #1
  73.     bgt     1b
  74.     bx      lr
  75.  
  76. b1:
  77.     mov     r2, #0
  78. 1:
  79.     vadd.i32 d0, d0, d1
  80.     vst1.32 {d0[0]}, [r1]
  81.     ldr     ip, [r1]
  82.  
  83.     .rept 25
  84.     add     r5, r5, #0
  85.     add     r6, r6, #0
  86.     .endr
  87.  
  88.     add     r2, r2, ip
  89.     subs    r0, r0, #1
  90.     bgt     1b
  91.     bx      lr
  92.  
  93. b2:
  94.     mov     r2, #0
  95. 1:
  96.     vadd.i32 d0, d0, d1
  97.     vst1.32 {d0[0]}, [r1]
  98.  
  99.     .rept 20
  100.     add     r5, r5, #0
  101.     add     r6, r6, #0
  102.     .endr
  103.  
  104.     ldr     ip, [r1]
  105.  
  106.     .rept 5
  107.     add     r5, r5, #0
  108.     add     r6, r6, #0
  109.     .endr
  110.  
  111.     add     r2, r2, ip
  112.     subs    r0, r0, #1
  113.     bgt     1b
  114.     bx      lr

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right
worth-right