ppc raw test failure when 32-bit bfd

Message ID YM1HXNyRW5+0Zuf5@squeak.grove.modra.org
State New
Headers show
Series
  • ppc raw test failure when 32-bit bfd
Related show

Commit Message

Alan Modra via Binutils June 19, 2021, 1:24 a.m.
The test contained an expression that can't be evaluated unless
expressions are 64-bit.

	* testsuite/gas/ppc/raw.s: Use 0 as pli constant.
	* testsuite/gas/ppc/raw.d: Update to suit.


-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/gas/testsuite/gas/ppc/raw.d b/gas/testsuite/gas/ppc/raw.d
index fff90775594..133c8c4e0a0 100644
--- a/gas/testsuite/gas/ppc/raw.d
+++ b/gas/testsuite/gas/ppc/raw.d
@@ -58,5 +58,5 @@  Disassembly of section \.text:
   c0:	(7f 7b db 78|78 db 7b 7f) 	or      r27,r27,r27
   c4:	(7f de f3 78|78 f3 de 7f) 	or      r30,r30,r30
   c8:	(7c 20 04 ac|ac 04 20 7c) 	sync    1,0
-  cc:	(06 02 00 00|00 00 02 06) 	paddi   r3,0,-8589934592,0
+  cc:	(06 00 00 00|00 00 00 06) 	paddi   r3,0,0,0
   d0:	(38 60 00 00|00 00 60 38) 
diff --git a/gas/testsuite/gas/ppc/raw.s b/gas/testsuite/gas/ppc/raw.s
index f318da5dd20..874f0bc4722 100644
--- a/gas/testsuite/gas/ppc/raw.s
+++ b/gas/testsuite/gas/ppc/raw.s
@@ -49,4 +49,4 @@ 
  yield
  mdoom
  lwsync
- pli 3,-1<<33
+ pli 3,0