Skip to content

PPC codgen issue on Windows #55911

@ltertan

Description

@ltertan

Compile options:

--target=ppc64 -mcpu=a2 -mhard-float

Test-case:

#include <stdio.h>
int myTest()
{
    unsigned long long value0, value1;
    value0 = 0x1234;
    value1 = 0x0000800000000000UL;
    
    if (value0 < 0x0000800000000000UL)
        printf ("correct\n");
    else
        printf ("incorrect\n");
    
    if (value0 < value1)
        printf ("correct\n");
    else
        printf ("incorrect\n");
    
    return 0;
} 

Description:

On a Windows host, the first if block gets compiled in a such a manner that we would print "incorrect".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions