]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas/testsuite/
authorYufeng Zhang <yufeng.zhang@arm.com>
Mon, 13 May 2013 23:09:52 +0000 (23:09 +0000)
committerYufeng Zhang <yufeng.zhang@arm.com>
Mon, 13 May 2013 23:09:52 +0000 (23:09 +0000)
Backport from mainline:

2013-05-13  Yufeng Zhang  <yufeng.zhang@arm.com>
* gas/aarch64/diagnostic.s: Update.
* gas/aarch64/diagnostic.l: Ditto.
* gas/aarch64/movi.s: Add new tests.
* gas/aarch64/movi.d: Update.

opcodes/

Backport from mainline:

2013-05-13  Yufeng Zhang  <yufeng.zhang@arm.com>
* aarch64-asm.c (aarch64_ins_advsimd_imm_modified): Remove assertion.
* aarch64-opc.c (operand_general_constraint_met_p): Relax the range
check from [0, 255] to [-128, 255].

gas/testsuite/ChangeLog
gas/testsuite/gas/aarch64/diagnostic.l
gas/testsuite/gas/aarch64/diagnostic.s
gas/testsuite/gas/aarch64/movi.d
gas/testsuite/gas/aarch64/movi.s
opcodes/ChangeLog
opcodes/aarch64-asm.c
opcodes/aarch64-opc.c

index 8ee06c8e9447878ce4a605fecf436d733a25bca8..475c93aadeae2ca718325923eacd88b42128071d 100644 (file)
@@ -1,3 +1,13 @@
+2013-05-13  Yufeng Zhang  <yufeng.zhang@arm.com>
+
+       Backport from mainline:
+
+       2013-05-13  Yufeng Zhang  <yufeng.zhang@arm.com>
+       * gas/aarch64/diagnostic.s: Update.
+       * gas/aarch64/diagnostic.l: Ditto.
+       * gas/aarch64/movi.s: Add new tests.
+       * gas/aarch64/movi.d: Update.
+
 2013-05-13 Yufeng Zhang <yufeng.zhang@arm.com>
 
        Backport from mainline:
index f37f11c535ffd722880629fbb1ae7038f925b18e..d7a13479cfcdbc4f2730ed5dd27696631c236c5f 100644 (file)
@@ -38,8 +38,8 @@
 [^:]*:40: Error: invalid shift amount at operand 3 -- `shll v1.4s,v2.4h,#32'
 [^:]*:41: Error: immediate value out of range 0 to 31 at operand 3 -- `shl v1.2s,v2.2s,32'
 [^:]*:42: Error: immediate value out of range 1 to 8 at operand 3 -- `sqshrn2 v2.16b,v3.8h,#17'
-[^:]*:43: Error: immediate value out of range 0 to 255 at operand 2 -- `movi v1.4h,256'
-[^:]*:44: Error: immediate value out of range 0 to 255 at operand 2 -- `movi v1.4h,-1'
+[^:]*:43: Error: immediate value out of range -128 to 255 at operand 2 -- `movi v1.4h,256'
+[^:]*:44: Error: immediate value out of range -128 to 255 at operand 2 -- `movi v1.4h,-129'
 [^:]*:45: Error: invalid shift operator at operand 2 -- `movi v1.4h,255,msl#8'
 [^:]*:46: Error: invalid value for immediate at operand 2 -- `movi d0,256'
 [^:]*:47: Error: immediate value should be a multiple of 8 at operand 2 -- `movi v1.4h,255,lsl#7'
index 99ebf8fa5f4d2068a83af43912531b838271184f..e5443ab750d865493a24486dfbc9bcfe617396a5 100644 (file)
@@ -41,7 +41,7 @@
        shl     v1.2s, v2.2s, 32
        sqshrn2 v2.16b, v3.8h, #17
        movi    v1.4h, 256
-       movi    v1.4h, -1
+       movi    v1.4h, -129
        movi    v1.4h, 255, msl #8
        movi    d0, 256
        movi    v1.4h, 255, lsl #7
index 2c73cc40d24f1e1e2b705078170c51fb8e15e027..c225b21c9d1427321a0ad475a74222288fd5f29b 100644 (file)
@@ -8201,3 +8201,6 @@ Disassembly of section \.text:
     8004:      6f07e7e0        movi    v0.2d, #0xffffffffffffffff
     8008:      6f07e7e0        movi    v0.2d, #0xffffffffffffffff
     800c:      2f07e7ff        movi    d31, #0xffffffffffffffff
+    8010:      0f04e403        movi    v3.8b, #0x80
+    8014:      0f04e423        movi    v3.8b, #0x81
+    8018:      0f07e7e3        movi    v3.8b, #0xff
index 99ca34a0545d2674ae4f834efc7e1c72b9ca897e..76f2d47b88010b6f8f412bad5ee324e7c6481509 100644 (file)
        movi    v0.2d, bignum
        movi    d31, 18446744073709551615
 .set    bignum, 0xffffffffffffffff
+
+       // Allow -128 to 255 in #<imm8>
+       movi    v3.8b, -128
+       movi    v3.8b, -127
+       movi    v3.8b, -1
index 96dfaeb510667b05bb796e80ac21aa8d9abb51d0..4adbc864186e17dee671a9289ae95b118f10b38a 100644 (file)
@@ -1,3 +1,12 @@
+2013-05-13  Yufeng Zhang  <yufeng.zhang@arm.com>
+
+       Backport from mainline:
+
+       2013-05-13  Yufeng Zhang  <yufeng.zhang@arm.com>
+       * aarch64-asm.c (aarch64_ins_advsimd_imm_modified): Remove assertion.
+       * aarch64-opc.c (operand_general_constraint_met_p): Relax the range
+       check from [0, 255] to [-128, 255].
+
 2013-03-25  Tristan Gingold  <gingold@adacore.com>
        Backport of: 2013-03-08  Yann Sionneau  <yann.sionneau@gmail.com>
 
index 16cdaa95966c65f50fb13b0dc5ee990a9b384657..ba463d9bd08e10ed9311b54cda2976caadaec6d4 100644 (file)
@@ -369,7 +369,6 @@ aarch64_ins_advsimd_imm_modified (const aarch64_operand *self ATTRIBUTE_UNUSED,
       imm = aarch64_shrink_expanded_imm8 (imm);
       assert ((int)imm >= 0);
     }
-  assert (imm <= 255);
   insert_fields (code, imm, 0, 2, FLD_defgh, FLD_abc);
 
   if (kind == AARCH64_MOD_NONE)
index 73a760a3c6ca1e67220281e90fba8ca40f4302dd..32f34c67e1c5b6bea04bb28e06f4bba31b021386 100644 (file)
@@ -1724,10 +1724,10 @@ operand_general_constraint_met_p (const aarch64_opnd_info *opnds, int idx,
          assert (idx == 1);
          if (aarch64_get_qualifier_esize (opnds[0].qualifier) != 8)
            {
-             /* uimm8 */
-             if (!value_in_range_p (opnd->imm.value, 0, 255))
+             /* uimm8 or simm8 */
+             if (!value_in_range_p (opnd->imm.value, -128, 255))
                {
-                 set_imm_out_of_range_error (mismatch_detail, idx, 0, 255);
+                 set_imm_out_of_range_error (mismatch_detail, idx, -128, 255);
                  return 0;
                }
            }