Displaying 1 result from an estimated 1 matches for "setpgtf32ri".
2011 Sep 29
1
[LLVMdev] Floating-Point Constants in TableGen?
...s?
Let's say I have the following pattern:
def : Pat<(i1 (trunc RegI16:$a)), (SETPGTu16ri RegI16:$a, 0)>;
Note the zero constant in the result. Is there a way to represent
floating-point literals in the same way? Something like...
def : Pat<(i1 (uint_to_fp RegF32:$a)), (SETPGTf32ri RegF32:$a, (f32
0.0))>;
This unfortunately does not work. Right now I'm getting around this by
using alternate instructions to first convert from an integer immediate,
something like:
def : Pat<(i1 (uint_to_fp RegF32:$a)), (SETPGTf32ri RegF32:$a,
(MOVf32i32 0))>;
Since my back...