From: Uros Bizjak Date: Thu, 15 Mar 2007 10:31:49 +0000 (+0100) Subject: i386.md (x86_sahf_1): Correctly handle HAVE_AS_IX86_SAHF. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=419452fe7e8ca4c132a89258863f4443d408b8a6;p=gcc.git i386.md (x86_sahf_1): Correctly handle HAVE_AS_IX86_SAHF. * config/i386/i386.md (x86_sahf_1): Correctly handle HAVE_AS_IX86_SAHF. Co-Authored-By: Francois-Xavier Coudert From-SVN: r122953 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6816ef23d94..256771977e4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-03-15 Uros Bizjak + Francois-Xavier Coudert + + * config/i386/i386.md (x86_sahf_1): Correctly handle + HAVE_AS_IX86_SAHF. + 2007-03-15 Uros Bizjak PR target/31167 diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 98c74f5131c..bdf8bef16dd 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -988,7 +988,13 @@ (unspec:CC [(match_operand:HI 0 "register_operand" "a")] UNSPEC_SAHF))] "TARGET_SAHF" - "* return HAVE_AS_IX86_SAHF ? \"sahf\" : \".byte\t0x9e\";" +{ +#ifdef HAVE_AS_IX86_SAHF + return "sahf"; +#else + return ".byte\t0x9e"; +#endif +} [(set_attr "length" "1") (set_attr "athlon_decode" "vector") (set_attr "amdfam10_decode" "direct")