diff mbox

[PR68432,16/22] Use code,alternative attributes for nds32

Message ID 874mgagsy3.fsf@e105548-lin.cambridge.arm.com
State New
Headers show

Commit Message

Richard Sandiford Nov. 25, 2015, 12:32 p.m. UTC
Tested as described in the covering note.  I plan to commit this as obvious
if the prerequisites are approved.

gcc/
	* config/nds32/nds32.md (is_16bit): Turn into a code,alternative
	attribute.
	(enabled): Likewise.
diff mbox

Patch

diff --git a/gcc/config/nds32/nds32.md b/gcc/config/nds32/nds32.md
index 89c0391..dbe2a2d 100644
--- a/gcc/config/nds32/nds32.md
+++ b/gcc/config/nds32/nds32.md
@@ -57,7 +57,7 @@ 
 
 
 ;; True if the instruction requires TARGET_16_BIT.
-(define_attr "is_16bit" "no,yes" (const_string "no"))
+(define_attr "is_16bit" "no,yes" (const_string "no") "code,alternative")
 
 
 ;; Length, in bytes, default is 4-bytes.
@@ -76,7 +76,8 @@ 
   (cond [(and (eq_attr "is_16bit" "yes")
 	      (match_test "!TARGET_16_BIT"))
 	 (const_int 0)]
-	(const_int 1)))
+	(const_int 1))
+  "code,alternative")
 
 
 ;; ----------------------------------------------------------------------------