[PATCH, i386]: Fix *movabs<mode>_1 constraints
Uros Bizjak
ubizjak@gmail.com
Mon Feb 27 14:42:00 GMT 2012
Hello!
We should not use "e" constraint for QI/HImode immediates. Fixed by
using correct mode attribute.
2012-02-27 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN.
Uros.
-------------- next part --------------
Index: config/i386/i386.md
===================================================================
--- config/i386/i386.md (revision 184591)
+++ config/i386/i386.md (working copy)
@@ -2361,7 +2361,7 @@
;; into register when rax is not available
(define_insn "*movabs<mode>_1"
[(set (mem:SWI1248x (match_operand:DI 0 "x86_64_movabs_operand" "i,r"))
- (match_operand:SWI1248x 1 "nonmemory_operand" "a,er"))]
+ (match_operand:SWI1248x 1 "nonmemory_operand" "a,r<i>"))]
"TARGET_64BIT && ix86_check_movabs (insn, 0)"
"@
movabs{<imodesuffix>}\t{%1, %P0|%P0, %1}
More information about the Gcc-patches
mailing list