Displaying 4 results from an estimated 4 matches for "lowerfp_to_sint_store".
2018 Sep 07
3
Clang for the PlayStation 2
On Thu, 6 Sep 2018 at 20:01, Tim Northover <t.p.northover at gmail.com> wrote:
> I just did a very quick experiment where I made lowerFP_TO_SINT and
> lowerFP_TO_SINT_STORE return SDValue() (which is the marker for "I
> don't want to handle this").
I just tried this, but the compiler still crashes with the same error.
Maybe our experiments were different.
To make it production-quality you'd want to predicate the changes I
> made on Subtarget...
2018 Sep 06
3
Clang for the PlayStation 2
On Thu, 6 Sep 2018, 16:31 Tim Northover, <t.p.northover at gmail.com> wrote:
> > The PS2, for what it's worth, only has an i32 -> f32 instruction, so I
> think there's an impedance mismatch somewhere.
>
> This is also a fairly common situation. If the operation can be
> emulated with a reasonably small number of native instructions you can
> often get LLVM to
2018 Sep 06
4
Clang for the PlayStation 2
...s to debug where Mips is producing those TruncIntFP
> nodes. There'll be some constraint it's not checking or an unexpected
> node type, probably related to -msingle-float. I'm afraid I'm not sure
> what yet.
>
I'm reasonably sure the function producing that node
is lowerFP_TO_SINT_STORE in lib/Target/Mips/MipsISelLowering.cpp.
The node before that function executes has an fp_to_sint node which seems
to want to convert an i64 to an f32 which seems...rather odd to me,
honestly. The PS2, for what it's worth, only has an i32 -> f32 instruction,
so I think there's an impeda...
2018 Sep 01
3
Clang for the PlayStation 2
Hello,
I'm part of the (sadly fairly small) community of PS2 hackers. The current
cross-toolchain for the PS2 is based on GCC 3.2.3, an outdated and buggy
compiler, which I have personally gotten tired of working with, so I would
like to port Clang as a newer cross-compiler for the PS2.
However, the PS2 has some notable quirks which make this a non-trivial task
for the current compiler. It