Skip to content

Commit b81b613

Browse files
so tablegen was thinking I might want to convert FPs to predicates.
clever little tablegen! llvm-svn: 24133
1 parent 6c912bf commit b81b613

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/Target/IA64/IA64InstrInfo.td

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,11 @@ def SINT_TO_FP : Pat<(sint_to_fp GR:$src),
558558
(FNORMD (FCVTXF (SETFSIG GR:$src)))>;
559559
def UINT_TO_FP : Pat<(uint_to_fp GR:$src),
560560
(FNORMD (FCVTXUF (SETFSIG GR:$src)))>;
561-
/* FIXME: tablegen coughs on these
562-
def FP_TO_SINT : Pat<(fp_to_sint FP:$src),
561+
def FP_TO_SINT : Pat<(i64 (fp_to_sint FP:$src)),
563562
(GETFSIG (FCVTFXTRUNC FP:$src))>;
564-
def FP_TO_UINT : Pat<(fp_to_uint FP:$src),
563+
def FP_TO_UINT : Pat<(i64 (fp_to_uint FP:$src)),
565564
(GETFSIG (FCVTFXUTRUNC FP:$src))>;
566-
*/
565+
567566

568567
let isTerminator = 1, isBranch = 1 in {
569568
def BRL_NOTCALL : RawForm<0x03, 0xb0, (ops i64imm:$dst),

0 commit comments

Comments
 (0)