summaryrefslogtreecommitdiff
path: root/lib/alloca-arm.S
blob: 68556e36d6b501f1cea1617be9d4bef326df987f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
	.text
	.align	2
	.global	alloca
	.type	alloca, %function
alloca:
#ifdef __TINYC__
        .int 0xe060d00d
        .int 0xe3cdd007
        .int 0xe1a0000d
        .int 0xe1a0f00e
#else
	rsb	sp, r0, sp
	bic	sp, sp, #7
	mov	r0, sp
	mov	pc, lr
#endif
	.size	alloca, .-alloca