From 764a67aafc67c5ab5fe55441f5b4c7d2050f6138 Mon Sep 17 00:00:00 2001 From: Qian Jianhua Date: Wed, 26 Aug 2020 11:08:10 +0100 Subject: [PATCH] aarch64: Fix testcase gcc.target/aarch64/insv_1.c 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/aarch64/insv_1.c b/gcc/testsuite/gcc.target/aarch64/insv_1.c index 360a9892ad9..9efa22e649d 100644 --- a/gcc/testsuite/gcc.target/aarch64/insv_1.c +++ b/gcc/testsuite/gcc.target/aarch64/insv_1.c @@ -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; } -- 2.30.2