[PATCH] RISC-V: Move UNSPEC_SSP_SET and UNSPEC_SSP_TEST to correct enum

stack_protect_{set,test}_<mode> were showing up in RTL dumps as
UNSPEC_COPYSIGN and UNSPEC_FMV_X_W due to UNSPEC_SSP_SET and
UNSPEC_SSP_TEST being put in the unspecv enum instead of unspec.

gcc/ChangeLog:

	* config/riscv/riscv.md: Move UNSPEC_SSP_SET and UNSPEC_SSP_TEST
	to unspec enum.
This commit is contained in:
Craig Blackmore 2025-02-06 12:56:26 -07:00 committed by Jeff Law
parent 33e610110c
commit ba58506478

View file

@ -99,6 +99,10 @@
;; CRC unspecs
UNSPEC_CRC
UNSPEC_CRC_REV
;; Stack Smash Protector
UNSPEC_SSP_SET
UNSPEC_SSP_TEST
])
(define_c_enum "unspecv" [
@ -123,10 +127,6 @@
UNSPECV_FENCE
UNSPECV_FENCE_I
;; Stack Smash Protector
UNSPEC_SSP_SET
UNSPEC_SSP_TEST
;; CMO instructions.
UNSPECV_CLEAN
UNSPECV_FLUSH