9f3fdd03ead542351990009d3841daa036932695
[openwrt/staging/stintel.git] / toolchain / musl / patches / 999-musl-drop-vx-insns.patch
1 --- a/src/setjmp/powerpc64/longjmp.s
2 +++ b/src/setjmp/powerpc64/longjmp.s
3 @@ -56,21 +56,6 @@ longjmp:
4 lfd 30, 38*8(3)
5 lfd 31, 39*8(3)
6
7 - # 6) restore vector registers v20-v31
8 - addi 3, 3, 40*8
9 - lvx 20, 0, 3 ; addi 3, 3, 16
10 - lvx 21, 0, 3 ; addi 3, 3, 16
11 - lvx 22, 0, 3 ; addi 3, 3, 16
12 - lvx 23, 0, 3 ; addi 3, 3, 16
13 - lvx 24, 0, 3 ; addi 3, 3, 16
14 - lvx 25, 0, 3 ; addi 3, 3, 16
15 - lvx 26, 0, 3 ; addi 3, 3, 16
16 - lvx 27, 0, 3 ; addi 3, 3, 16
17 - lvx 28, 0, 3 ; addi 3, 3, 16
18 - lvx 29, 0, 3 ; addi 3, 3, 16
19 - lvx 30, 0, 3 ; addi 3, 3, 16
20 - lvx 31, 0, 3
21 -
22 # 7) return r4 ? r4 : 1
23 mr 3, 4
24 cmpwi cr7, 4, 0
25 --- a/src/setjmp/powerpc64/setjmp.s
26 +++ b/src/setjmp/powerpc64/setjmp.s
27 @@ -69,21 +69,6 @@ __setjmp_toc:
28 stfd 30, 38*8(3)
29 stfd 31, 39*8(3)
30
31 - # 5) store vector registers v20-v31
32 - addi 3, 3, 40*8
33 - stvx 20, 0, 3 ; addi 3, 3, 16
34 - stvx 21, 0, 3 ; addi 3, 3, 16
35 - stvx 22, 0, 3 ; addi 3, 3, 16
36 - stvx 23, 0, 3 ; addi 3, 3, 16
37 - stvx 24, 0, 3 ; addi 3, 3, 16
38 - stvx 25, 0, 3 ; addi 3, 3, 16
39 - stvx 26, 0, 3 ; addi 3, 3, 16
40 - stvx 27, 0, 3 ; addi 3, 3, 16
41 - stvx 28, 0, 3 ; addi 3, 3, 16
42 - stvx 29, 0, 3 ; addi 3, 3, 16
43 - stvx 30, 0, 3 ; addi 3, 3, 16
44 - stvx 31, 0, 3
45 -
46 # 6) return 0
47 li 3, 0
48 blr