diff options
author | Yufeng Zhang <yufeng.zhang@arm.com> | 2013-05-13 22:28:27 +0000 |
---|---|---|
committer | Yufeng Zhang <yufeng.zhang@arm.com> | 2013-05-13 22:28:27 +0000 |
commit | d2865ed314c9d0c2c9257ce833a6f3f5ebe20e7f (patch) | |
tree | 8175437f3372369e0a0604150940c0a2eac2d346 /gas | |
parent | 55fb6d274dd86d886b71b6a7cd5a017c1bd49bb9 (diff) | |
download | gdb-d2865ed314c9d0c2c9257ce833a6f3f5ebe20e7f.zip gdb-d2865ed314c9d0c2c9257ce833a6f3f5ebe20e7f.tar.gz gdb-d2865ed314c9d0c2c9257ce833a6f3f5ebe20e7f.tar.bz2 |
gas/
* testsuite/gas/aarch64/diagnostic.s: Update.
* testsuite/gas/aarch64/diagnostic.l: Ditto.
* testsuite/gas/aarch64/movi.s: Add new tests.
* testsuite/gas/aarch64/movi.d: Update.
opcodes/
* 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].
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/diagnostic.l | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/diagnostic.s | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/movi.d | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/movi.s | 5 |
5 files changed, 18 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index e35c821..c1a0aa7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2013-05-13 Yufeng Zhang <yufeng.zhang@arm.com> + + * testsuite/gas/aarch64/diagnostic.s: Update. + * testsuite/gas/aarch64/diagnostic.l: Ditto. + * testsuite/gas/aarch64/movi.s: Add new tests. + * testsuite/gas/aarch64/movi.d: Update. + 2013-05-09 Andrew Pinski <apinski@cavium.com> * config/tc-mips.c (struct mips_set_options): New ase_virt field. diff --git a/gas/testsuite/gas/aarch64/diagnostic.l b/gas/testsuite/gas/aarch64/diagnostic.l index 0a08011..cca8881 100644 --- a/gas/testsuite/gas/aarch64/diagnostic.l +++ b/gas/testsuite/gas/aarch64/diagnostic.l @@ -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' diff --git a/gas/testsuite/gas/aarch64/diagnostic.s b/gas/testsuite/gas/aarch64/diagnostic.s index 99ebf8f..e5443ab 100644 --- a/gas/testsuite/gas/aarch64/diagnostic.s +++ b/gas/testsuite/gas/aarch64/diagnostic.s @@ -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 diff --git a/gas/testsuite/gas/aarch64/movi.d b/gas/testsuite/gas/aarch64/movi.d index cd54cfd..e159e47 100644 --- a/gas/testsuite/gas/aarch64/movi.d +++ b/gas/testsuite/gas/aarch64/movi.d @@ -8713,3 +8713,6 @@ Disassembly of section \.text: 8804: 6f07e7e0 movi v0.2d, #0xffffffffffffffff 8808: 6f07e7e0 movi v0.2d, #0xffffffffffffffff 880c: 2f07e7ff movi d31, #0xffffffffffffffff + 8810: 0f04e403 movi v3.8b, #0x80 + 8814: 0f04e423 movi v3.8b, #0x81 + 8818: 0f07e7e3 movi v3.8b, #0xff diff --git a/gas/testsuite/gas/aarch64/movi.s b/gas/testsuite/gas/aarch64/movi.s index a650790..3a15e3d 100644 --- a/gas/testsuite/gas/aarch64/movi.s +++ b/gas/testsuite/gas/aarch64/movi.s @@ -113,3 +113,8 @@ 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 |