aarch64: Fix testcase gcc.target/aarch64/insv_1.c
authorQian Jianhua <qianjh@cn.fujitsu.com>
Wed, 26 Aug 2020 10:08:10 +0000 (11:08 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 26 Aug 2020 10:08:10 +0000 (11:08 +0100)
There are three failures in gcc.target/aarch64/insv_1.c.
 FAIL: gcc.target/aarch64/insv_1.c scan-assembler bfi\tx[0-9]+, x[0-9]+, 0, 8
 FAIL: gcc.target/aarch64/insv_1.c scan-assembler bfi\tx[0-9]+, x[0-9]+, 16, 5
 FAIL: gcc.target/aarch64/insv_1.c scan-assembler movk\tx[0-9]+, 0x1d6b, lsl 32

This patch fix the third failure which was missed "#" before immediate value
in scan-assembler.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/insv_1.c: Add '#' in scan-assembler

gcc/testsuite/gcc.target/aarch64/insv_1.c

index 360a9892ad95e30a38c1135ee117f7fe81e81c67..9efa22e649d6991effb031ae553e866969d75c6a 100644 (file)
@@ -32,7 +32,7 @@ bfi2 (bitfield a)
 bitfield
 movk (bitfield a)
 {
-  /* { dg-final { scan-assembler "movk\tx\[0-9\]+, 0x1d6b, lsl 32" } } */
+  /* { dg-final { scan-assembler "movk\tx\[0-9\]+, #0x1d6b, lsl 32" } } */
   a.sixteen = 7531;
   return a;
 }