PR26426, ASAN: neon_quad tc-arm.c:15175

PR 26426
	* config/tc-arm.c (do_neon_mvn, do_neon_swp): Bail out on
	NS_NULL shape.
This commit is contained in:
Alan Modra 2020-08-25 14:12:49 +09:30
parent d2327e47ef
commit 250dd99fc9
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2020-08-25 Alan Modra <amodra@gmail.com>
PR 26426
* config/tc-arm.c (do_neon_mvn, do_neon_swp): Bail out on
NS_NULL shape.
2020-08-25 Alan Modra <amodra@gmail.com>
PR 26410

View file

@ -19555,6 +19555,9 @@ do_neon_mvn (void)
else
rs = neon_select_shape (NS_DD, NS_QQ, NS_NULL);
if (rs == NS_NULL)
return;
NEON_ENCODE (INTEGER, inst);
inst.instruction |= LOW4 (inst.operands[0].reg) << 12;
inst.instruction |= HI1 (inst.operands[0].reg) << 22;
@ -20634,6 +20637,8 @@ static void
do_neon_swp (void)
{
enum neon_shape rs = neon_select_shape (NS_DD, NS_QQ, NS_NULL);
if (rs == NS_NULL)
return;
neon_two_same (neon_quad (rs), 1, -1);
}