diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.23.2/backport/aarch64-movi.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils-2.23.2/backport/aarch64-movi.patch | 144 |
1 files changed, 0 insertions, 144 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.23.2/backport/aarch64-movi.patch b/meta/recipes-devtools/binutils/binutils-2.23.2/backport/aarch64-movi.patch deleted file mode 100644 index 314eef27f0..0000000000 --- a/meta/recipes-devtools/binutils/binutils-2.23.2/backport/aarch64-movi.patch +++ /dev/null | |||
@@ -1,144 +0,0 @@ | |||
1 | From: Yufeng Zhang <yufeng.zhang@arm.com> | ||
2 | Date: Mon, 13 May 2013 23:09:51 +0000 (+0000) | ||
3 | Subject: gas/testsuite/ | ||
4 | X-Git-Url: http://sourceware.org/git/?p=binutils.git;a=commitdiff_plain;h=f426901e1be0f58fe4e9386cada50ca57d0a4f36 | ||
5 | |||
6 | Upstream-Status: backport | ||
7 | |||
8 | gas/testsuite/ | ||
9 | |||
10 | Backport from mainline: | ||
11 | |||
12 | 2013-05-13 Yufeng Zhang <yufeng.zhang@arm.com> | ||
13 | * gas/aarch64/diagnostic.s: Update. | ||
14 | * gas/aarch64/diagnostic.l: Ditto. | ||
15 | * gas/aarch64/movi.s: Add new tests. | ||
16 | * gas/aarch64/movi.d: Update. | ||
17 | |||
18 | opcodes/ | ||
19 | |||
20 | Backport from mainline: | ||
21 | |||
22 | 2013-05-13 Yufeng Zhang <yufeng.zhang@arm.com> | ||
23 | * aarch64-asm.c (aarch64_ins_advsimd_imm_modified): Remove assertion. | ||
24 | * aarch64-opc.c (operand_general_constraint_met_p): Relax the range | ||
25 | check from [0, 255] to [-128, 255]. | ||
26 | --- | ||
27 | |||
28 | diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog | ||
29 | index 8ee06c8..475c93a 100644 | ||
30 | --- a/gas/testsuite/ChangeLog | ||
31 | +++ b/gas/testsuite/ChangeLog | ||
32 | @@ -1,3 +1,13 @@ | ||
33 | +2013-05-13 Yufeng Zhang <yufeng.zhang@arm.com> | ||
34 | + | ||
35 | + Backport from mainline: | ||
36 | + | ||
37 | + 2013-05-13 Yufeng Zhang <yufeng.zhang@arm.com> | ||
38 | + * gas/aarch64/diagnostic.s: Update. | ||
39 | + * gas/aarch64/diagnostic.l: Ditto. | ||
40 | + * gas/aarch64/movi.s: Add new tests. | ||
41 | + * gas/aarch64/movi.d: Update. | ||
42 | + | ||
43 | 2013-05-13 Yufeng Zhang <yufeng.zhang@arm.com> | ||
44 | |||
45 | Backport from mainline: | ||
46 | diff --git a/gas/testsuite/gas/aarch64/diagnostic.l b/gas/testsuite/gas/aarch64/diagnostic.l | ||
47 | index f37f11c..d7a1347 100644 | ||
48 | --- a/gas/testsuite/gas/aarch64/diagnostic.l | ||
49 | +++ b/gas/testsuite/gas/aarch64/diagnostic.l | ||
50 | @@ -38,8 +38,8 @@ | ||
51 | [^:]*:40: Error: invalid shift amount at operand 3 -- `shll v1.4s,v2.4h,#32' | ||
52 | [^:]*:41: Error: immediate value out of range 0 to 31 at operand 3 -- `shl v1.2s,v2.2s,32' | ||
53 | [^:]*:42: Error: immediate value out of range 1 to 8 at operand 3 -- `sqshrn2 v2.16b,v3.8h,#17' | ||
54 | -[^:]*:43: Error: immediate value out of range 0 to 255 at operand 2 -- `movi v1.4h,256' | ||
55 | -[^:]*:44: Error: immediate value out of range 0 to 255 at operand 2 -- `movi v1.4h,-1' | ||
56 | +[^:]*:43: Error: immediate value out of range -128 to 255 at operand 2 -- `movi v1.4h,256' | ||
57 | +[^:]*:44: Error: immediate value out of range -128 to 255 at operand 2 -- `movi v1.4h,-129' | ||
58 | [^:]*:45: Error: invalid shift operator at operand 2 -- `movi v1.4h,255,msl#8' | ||
59 | [^:]*:46: Error: invalid value for immediate at operand 2 -- `movi d0,256' | ||
60 | [^:]*:47: Error: immediate value should be a multiple of 8 at operand 2 -- `movi v1.4h,255,lsl#7' | ||
61 | diff --git a/gas/testsuite/gas/aarch64/diagnostic.s b/gas/testsuite/gas/aarch64/diagnostic.s | ||
62 | index 99ebf8f..e5443ab 100644 | ||
63 | --- a/gas/testsuite/gas/aarch64/diagnostic.s | ||
64 | +++ b/gas/testsuite/gas/aarch64/diagnostic.s | ||
65 | @@ -41,7 +41,7 @@ | ||
66 | shl v1.2s, v2.2s, 32 | ||
67 | sqshrn2 v2.16b, v3.8h, #17 | ||
68 | movi v1.4h, 256 | ||
69 | - movi v1.4h, -1 | ||
70 | + movi v1.4h, -129 | ||
71 | movi v1.4h, 255, msl #8 | ||
72 | movi d0, 256 | ||
73 | movi v1.4h, 255, lsl #7 | ||
74 | diff --git a/gas/testsuite/gas/aarch64/movi.d b/gas/testsuite/gas/aarch64/movi.d | ||
75 | index 2c73cc4..c225b21 100644 | ||
76 | --- a/gas/testsuite/gas/aarch64/movi.d | ||
77 | +++ b/gas/testsuite/gas/aarch64/movi.d | ||
78 | @@ -8201,3 +8201,6 @@ Disassembly of section \.text: | ||
79 | 8004: 6f07e7e0 movi v0.2d, #0xffffffffffffffff | ||
80 | 8008: 6f07e7e0 movi v0.2d, #0xffffffffffffffff | ||
81 | 800c: 2f07e7ff movi d31, #0xffffffffffffffff | ||
82 | + 8010: 0f04e403 movi v3.8b, #0x80 | ||
83 | + 8014: 0f04e423 movi v3.8b, #0x81 | ||
84 | + 8018: 0f07e7e3 movi v3.8b, #0xff | ||
85 | diff --git a/gas/testsuite/gas/aarch64/movi.s b/gas/testsuite/gas/aarch64/movi.s | ||
86 | index 99ca34a..76f2d47 100644 | ||
87 | --- a/gas/testsuite/gas/aarch64/movi.s | ||
88 | +++ b/gas/testsuite/gas/aarch64/movi.s | ||
89 | @@ -102,3 +102,8 @@ | ||
90 | movi v0.2d, bignum | ||
91 | movi d31, 18446744073709551615 | ||
92 | .set bignum, 0xffffffffffffffff | ||
93 | + | ||
94 | + // Allow -128 to 255 in #<imm8> | ||
95 | + movi v3.8b, -128 | ||
96 | + movi v3.8b, -127 | ||
97 | + movi v3.8b, -1 | ||
98 | diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog | ||
99 | index 96dfaeb..4adbc86 100644 | ||
100 | --- a/opcodes/ChangeLog | ||
101 | +++ b/opcodes/ChangeLog | ||
102 | @@ -1,3 +1,12 @@ | ||
103 | +2013-05-13 Yufeng Zhang <yufeng.zhang@arm.com> | ||
104 | + | ||
105 | + Backport from mainline: | ||
106 | + | ||
107 | + 2013-05-13 Yufeng Zhang <yufeng.zhang@arm.com> | ||
108 | + * aarch64-asm.c (aarch64_ins_advsimd_imm_modified): Remove assertion. | ||
109 | + * aarch64-opc.c (operand_general_constraint_met_p): Relax the range | ||
110 | + check from [0, 255] to [-128, 255]. | ||
111 | + | ||
112 | 2013-03-25 Tristan Gingold <gingold@adacore.com> | ||
113 | Backport of: 2013-03-08 Yann Sionneau <yann.sionneau@gmail.com> | ||
114 | |||
115 | diff --git a/opcodes/aarch64-asm.c b/opcodes/aarch64-asm.c | ||
116 | index 16cdaa9..ba463d9 100644 | ||
117 | --- a/opcodes/aarch64-asm.c | ||
118 | +++ b/opcodes/aarch64-asm.c | ||
119 | @@ -369,7 +369,6 @@ aarch64_ins_advsimd_imm_modified (const aarch64_operand *self ATTRIBUTE_UNUSED, | ||
120 | imm = aarch64_shrink_expanded_imm8 (imm); | ||
121 | assert ((int)imm >= 0); | ||
122 | } | ||
123 | - assert (imm <= 255); | ||
124 | insert_fields (code, imm, 0, 2, FLD_defgh, FLD_abc); | ||
125 | |||
126 | if (kind == AARCH64_MOD_NONE) | ||
127 | diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c | ||
128 | index 73a760a..32f34c6 100644 | ||
129 | --- a/opcodes/aarch64-opc.c | ||
130 | +++ b/opcodes/aarch64-opc.c | ||
131 | @@ -1724,10 +1724,10 @@ operand_general_constraint_met_p (const aarch64_opnd_info *opnds, int idx, | ||
132 | assert (idx == 1); | ||
133 | if (aarch64_get_qualifier_esize (opnds[0].qualifier) != 8) | ||
134 | { | ||
135 | - /* uimm8 */ | ||
136 | - if (!value_in_range_p (opnd->imm.value, 0, 255)) | ||
137 | + /* uimm8 or simm8 */ | ||
138 | + if (!value_in_range_p (opnd->imm.value, -128, 255)) | ||
139 | { | ||
140 | - set_imm_out_of_range_error (mismatch_detail, idx, 0, 255); | ||
141 | + set_imm_out_of_range_error (mismatch_detail, idx, -128, 255); | ||
142 | return 0; | ||
143 | } | ||
144 | } | ||