Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | From c2adcca93a0075665a8195caad49b89785886e8e Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 29 Jan 2019 12:02:22 -0800 |
| 4 | Subject: [PATCH] burn.S: Add |
| 5 | |
| 6 | This is originally from |
| 7 | https://hardwarebug.org/files/burn.S |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | burn.S | 26 ++++++++++++++++++++++++++ |
| 13 | 1 file changed, 26 insertions(+) |
| 14 | create mode 100644 burn.S |
| 15 | |
| 16 | diff --git a/burn.S b/burn.S |
| 17 | new file mode 100644 |
| 18 | index 0000000..c372c87 |
| 19 | --- /dev/null |
| 20 | +++ b/burn.S |
| 21 | @@ -0,0 +1,26 @@ |
| 22 | + .arch armv7-a |
| 23 | + .fpu neon |
| 24 | + |
| 25 | + .text |
| 26 | + |
| 27 | + .global main |
| 28 | + .type main, STT_FUNC |
| 29 | + .func main |
| 30 | +main: |
| 31 | + bic sp, sp, #15 |
| 32 | +1: |
| 33 | + vld1.8 {q8}, [sp,:128] |
| 34 | + smuad r6, r4, r5 |
| 35 | + veor q9, q0, q1 |
| 36 | + add lr, r4, r5 |
| 37 | + ldr ip, [sp] |
| 38 | + vext.8 q10, q3, q4, #1 |
| 39 | + eor r5, r4, r5 |
| 40 | + vadd.i32 q11, q0, q1 |
| 41 | + smusd r6, r4, r5 |
| 42 | + ldr r2, [sp] |
| 43 | + vext.8 q12, q1, q2, #3 |
| 44 | + ssub8 lr, r4, r5 |
| 45 | + vmul.u16 q13, q0, q4 |
| 46 | + b 1b |
| 47 | +.endfunc |