MIPS/GCC/testsuite: Fix data-sym-pool.c for n64 code
commit7826b688f68425986ef60514e07c1e9fe5764177
authormacro <macro@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Apr 2018 21:03:11 +0000 (26 21:03 +0000)
committermacro <macro@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Apr 2018 21:03:11 +0000 (26 21:03 +0000)
treeb87de8d91531dda0ab7a994b7b2a47c4524ff57d
parent49f2c83b74336c65904088930f33bfe5e1d562c9
MIPS/GCC/testsuite: Fix data-sym-pool.c for n64 code

With the soft-float n64 ABI and the data-sym-pool.c test case code like
below is produced:

.file 1 "data-sym-pool.c"
.section .mdebug.abi64
.previous
.nan legacy
.module softfloat
.module oddspreg
.abicalls
.option pic0
.text
.align 2
.globl frob
.set mips16
.set nomicromips
.ent frob
.type frob, @function
frob:
.frame $17,16,$31 # vars= 0, regs= 1/0, args= 0, gp= 0
.mask 0x00020000,-8
.fmask 0x00000000,0
daddiu $sp,-16
sd $17,8($sp)
move $17,$sp
ld $2,.L3
move $sp,$17
ld $17,8($sp)
daddiu $sp,16
jr $31
.type __pool_frob_3, @object
__pool_frob_3:
.align 3
.L3:
.dword 305419896
.type __pend_frob_3, @function
__pend_frob_3:
.insn
.end frob
.size frob, .-frob
.ident "GCC: (GNU) 8.0.1 20180410 (experimental)"

(we have no support for hard-float n64 MIPS16 code generation), which
means that the test case will fail, as the regular expression pattern
expects `lw' and `.word' rather than `ld' and `.dword' respectively to
appear in assembly code generation.  Correct the pattern in an obvious
way then making it accept both intructions and pseudo-ops.

gcc/testsuite/
* gcc.target/mips/data-sym-pool.c (dg-options): Match `ld' and
`.dword' in addition to `lw' and `.word'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259691 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/data-sym-pool.c