Skip to content

IR tests fail on Windows for target x86 #1265

@rainers

Description

@rainers

The IR tests always fail for me on Windows testing the x64 x86 build.

With the generated VS projects, it seems the ldc2 executable is expected in the build-ldc2-x64/bin folder, but it is generated to the Debug/Release subfolder:

Command 0 Stderr:
'C:/s/d/ldc/build-ldc2-x64/bin/ldc2': command not found

With the Ninja build, ldc2 is found, but the test fails with this snippet found in the LastTest.log file:

Command 1 Stderr:
C:\s\d\ldc\ldc\tests\ir\attributes.d:12:15: error: expected string not found in input
// CHECK-DAG: define void @{{.*}}sectionedfoo{{.*}} section "funcSection"
              ^
<stdin>:1:1: note: scanning from here
; ModuleID = 'C:\s\d\ldc\ldc\tests\ir\attributes.d'
^
<stdin>:19:37: note: possible intended match here
define x86_stdcallcc void @"\01__D10attributes12sectionedfooFZv"() #0 section "funcSection" {
                                    ^

It seems the additional calling convention is unexpected.

Here's the output for align.d:

Command 1 Stderr:
C:\s\d\ldc\ldc\tests\ir\align.d:12:11: error: expected string not found in input
// CHECK: define void @_D5align23passAndReturnOuterByValFS5align5OuterZS5align5Outer
          ^
<stdin>:35:80: note: scanning from here
@_D5align5Inner6__initZ = constant %align.Inner_init zeroinitializer, align 32 ; [#uses = 0]
                                                                               ^
<stdin>:46:20: note: possible intended match here
define x86_stdcallcc void @"\01__D5align23passAndReturnOuterByValFS5align5OuterZS5align5Outer"(%align.Outer* inreg noalias %.sret_arg, %align.Outer* byval %arg_arg) {

The other 3 tests are reported to pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions