s390: gas: sframe: do not reject .cfi_register REG_SP, REG

On s390 64-bit (s390x) compilers may save the SP, FP, and RA registers,
which are of interest in SFrame, in other registers, such as floating-
point registers, for instance when in a leaf function.

SFrame does not explicitly track the SP.  Instead SFrame relies on the
architecture-specific CFA definition to recover the SP.  The s390x ELF
ABI [1] defines the CFA as SP at call site + 160, which results in the
implicit SP recovery rule SP = CFA - 160.

Assuming that CFI on s390 64-bit (s390x) adheres to the CFA definition,
it is safe to ignore any CFI directives, that specify the SP register at
entry to be saved either on the stack or in another register, as the SP
can then always be recovered using the implicit SP recovery rule.

[1]: s390x ELF ABI, https://github.com/IBM/s390x-abi/releases

Committed-by: Indu Bhagat <indu.bhagat@oracle.com>

gas/
	* gen-sframe.c (sframe_xlate_do_register): Ignore .cfi_register SP
	on s390x.

gas/testsuite/
	* gas/cfi-sframe/cfi-sframe.exp (cfi-sframe-s390x-err-4): Rename
	test to cfi-sframe-s390x-sp-register.
	* gas/cfi-sframe/cfi-sframe-s390x-err-4.d: Rename to ...
	* gas/cfi-sframe/cfi-sframe-s390x-err-4.s: Likewise.
	* gas/cfi-sframe/cfi-sframe-s390x-sp-register.d: This.  Test
	that .cfi_register SP is ignored.
	* gas/cfi-sframe/cfi-sframe-s390x-sp-register.s: Likewise.  Add
	minimal assembler sample.
6 files changed