compare instructions
Dmitry
diwil@eis.ru
Fri Jan 25 03:06:00 GMT 2002
Fellows,
Is there something wrong:
(define_expand "tstsi_for_zero_const"
[(set (cc0) (and:SI (match_operand:SI 0 "nonimmediate_operand" "")
(match_operand:SI 1 "immediate_operand" "")))]
""
"")
(define_insn "*tstsi_for_zero_const"
[(set (cc0) (and:SI (match_operand:SI 0 "nonimmediate_operand" "rm")
(match_operand:SI 1 "immediate_operand" "i")))]
""
"this_is_a_test %0,%1"
[(set_attr "length" "2")
(set_attr "cc" "compare")])
I suggest, that this expander will suit:
if( a&CONST ) {...}
where 'a' has SImode.
But the compiler fails to pick up 'tstsi_for_zero_const' defenition.
Can anybody tell me why?
Dmitry.
*********************************************************************
("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ
`6_ 6 ) `-. ( ).`-.__.`) Enterprise Information Sys
(_Y_.)' ._ ) `._ `. ``-..-' Nevsky prospekt, 20 / 44
_..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia
(il),-'' (li),' ((!.-' +7 (812) 314-8860, 5585314
*********************************************************************
More information about the Gcc
mailing list