implement anyextend from i1 -> i64

llvm-svn: 36802
This commit is contained in:
Chris Lattner 2007-05-05 22:17:00 +00:00
parent 341cb5adc8
commit a13a7d375c

View File

@ -162,6 +162,8 @@ def TPCMPIMM8NE : AForm<0x03, 0x0b,
// zero extend a bool (predicate reg) into an integer reg
def ZXTb : Pat<(zext PR:$src),
(TPCADDIMM22 (ADDS r0, 0), 1, PR:$src)>;
def AXTb : Pat<(anyext PR:$src),
(TPCADDIMM22 (ADDS r0, 0), 1, PR:$src)>;
// normal sign/zero-extends
def SXT1 : AForm_DAG<0x03, 0x0b, (ops GR:$dst, GR:$src), "sxt1 $dst = $src",