Skip to content

Commit 0c3c657

Browse files
committed
fix extMul for 32 bit llvm
1 parent 649745e commit 0c3c657

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/mir/utility.d

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,11 @@ ExtMulResult!U extMul(U)(in U a, in U b) @nogc nothrow pure @safe
515515
{
516516
if (!__ctfe)
517517
{
518+
static if (size_t.sizeof == 4)
519+
{
520+
// https://github.com/ldc-developers/ldc/issues/2391
521+
}
522+
else
518523
version(LDC)
519524
{
520525
// LLVM IR by n8sh
@@ -533,6 +538,7 @@ ExtMulResult!U extMul(U)(in U a, in U b) @nogc nothrow pure @safe
533538
ret [2 x i64] %agg2`, ulong[2])(a, b);
534539
}
535540
else
541+
static if (false)
536542
{
537543
auto r = inlineIR!(`
538544
%a = zext i128 %0 to i256

0 commit comments

Comments
 (0)