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 <coudert@clipper.ens.fr>

From-SVN: r122953
This commit is contained in:
Uros Bizjak 2007-03-15 11:31:49 +01:00 committed by Uros Bizjak
parent 75873b87c2
commit 419452fe7e
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-03-15 Uros Bizjak <ubizjak@gmail.com>
Francois-Xavier Coudert <coudert@clipper.ens.fr>
* config/i386/i386.md (x86_sahf_1): Correctly handle
HAVE_AS_IX86_SAHF.
2007-03-15 Uros Bizjak <ubizjak@gmail.com>
PR target/31167

View File

@ -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")