Fix pr27217 testcase failure

Message ID 20210407085301.GR5425@bubble.grove.modra.org
State New
Headers show
Series
  • Fix pr27217 testcase failure
Related show

Commit Message

H.J. Lu via Binutils April 7, 2021, 8:53 a.m.
The new testcase failed on aarch64_be-linux-gnu_ilp32 with
"FAIL: PR27212".  There are rather a lot of other ipl32 fails too..

	PR 27217
	* testsuite/gas/aarch64/pr27217.d: Correct name.  Accept ilp32 relocs.


-- 
Alan Modra
Australia Development Lab, IBM

Comments

H.J. Lu via Binutils April 7, 2021, 10:40 a.m. | #1
Hi Alan,

> The new testcase failed on aarch64_be-linux-gnu_ilp32 with


Thanks for the heads up Alan.  I have now added this configuration to my test array, so I hope not to make silly mistakes like this in the future.

Cheers
   Nick

Patch

diff --git a/gas/testsuite/gas/aarch64/pr27217.d b/gas/testsuite/gas/aarch64/pr27217.d
index 4645ff55a34..abbc48717b4 100644
--- a/gas/testsuite/gas/aarch64/pr27217.d
+++ b/gas/testsuite/gas/aarch64/pr27217.d
@@ -1,5 +1,5 @@ 
 # Check that expressions that generate relocations work when the symbol is a constant.
-#name: PR27212
+#name: PR27217
 #objdump: -rd
 
 .*:     file format .*
@@ -8,8 +8,8 @@  Disassembly of section \.text:
 
 0+000 <.*>:
 [ 	]+0:[ 	]+90000000[ 	]+adrp[ 	]+x0, 12345678[ 	]+<bar>
-[ 	]+0:[ 	]+R_AARCH64_ADR_PREL_PG_HI21[ 	]+bar
+[ 	]+0:[ 	]+R_AARCH64(|_P32)_ADR_PREL_PG_HI21[ 	]+bar
 [ 	]+4:[ 	]+91000000[ 	]+add[ 	]+x0, x0, #0x0
-[ 	]+4:[ 	]+R_AARCH64_ADD_ABS_LO12_NC[ 	]+bar
+[ 	]+4:[ 	]+R_AARCH64(|_P32)_ADD_ABS_LO12_NC[ 	]+bar
 [ 	]+8:[ 	]+d65f03c0[ 	]+ret
 #pass