Commit d9c981c8 by Richard Henderson Committed by Richard Henderson

re PR target/69416 (Nonsense rtl checking failure)

PR target/69416

  * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
  (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.

From-SVN: r232737
parent 01736018
2016-01-22 Richard Henderson <rth@redhat.com>
PR target/69416
* config/aarch64/aarch64.md (UNSPEC_NZCV): New.
(ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
2016-01-22 Michael Matz <matz@suse.de> 2016-01-22 Michael Matz <matz@suse.de>
* system.h (string, algorithm): Include only conditionally. * system.h (string, algorithm): Include only conditionally.
......
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
UNSPEC_RSQRT UNSPEC_RSQRT
UNSPEC_RSQRTE UNSPEC_RSQRTE
UNSPEC_RSQRTS UNSPEC_RSQRTS
UNSPEC_NZCV
]) ])
(define_c_enum "unspecv" [ (define_c_enum "unspecv" [
...@@ -280,7 +281,7 @@ ...@@ -280,7 +281,7 @@
(compare:CC (compare:CC
(match_operand:GPI 2 "register_operand" "r,r,r") (match_operand:GPI 2 "register_operand" "r,r,r")
(match_operand:GPI 3 "aarch64_ccmp_operand" "r,Uss,Usn")) (match_operand:GPI 3 "aarch64_ccmp_operand" "r,Uss,Usn"))
(match_operand 5 "immediate_operand")))] (unspec:CC [(match_operand 5 "immediate_operand")] UNSPEC_NZCV)))]
"" ""
"@ "@
ccmp\\t%<w>2, %<w>3, %k5, %m4 ccmp\\t%<w>2, %<w>3, %k5, %m4
...@@ -298,7 +299,7 @@ ...@@ -298,7 +299,7 @@
(compare:CCFP (compare:CCFP
(match_operand:GPF 2 "register_operand" "w") (match_operand:GPF 2 "register_operand" "w")
(match_operand:GPF 3 "register_operand" "w")) (match_operand:GPF 3 "register_operand" "w"))
(match_operand 5 "immediate_operand")))] (unspec:CCFP [(match_operand 5 "immediate_operand")] UNSPEC_NZCV)))]
"TARGET_FLOAT" "TARGET_FLOAT"
"fccmp\\t%<s>2, %<s>3, %k5, %m4" "fccmp\\t%<s>2, %<s>3, %k5, %m4"
[(set_attr "type" "fcmp<s>")] [(set_attr "type" "fcmp<s>")]
...@@ -313,7 +314,7 @@ ...@@ -313,7 +314,7 @@
(compare:CCFPE (compare:CCFPE
(match_operand:GPF 2 "register_operand" "w") (match_operand:GPF 2 "register_operand" "w")
(match_operand:GPF 3 "register_operand" "w")) (match_operand:GPF 3 "register_operand" "w"))
(match_operand 5 "immediate_operand")))] (unspec:CCFPE [(match_operand 5 "immediate_operand")] UNSPEC_NZCV)))]
"TARGET_FLOAT" "TARGET_FLOAT"
"fccmpe\\t%<s>2, %<s>3, %k5, %m4" "fccmpe\\t%<s>2, %<s>3, %k5, %m4"
[(set_attr "type" "fcmp<s>")] [(set_attr "type" "fcmp<s>")]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment