Skip to content

ContinuousSyncMode/runtime-counter-relocation.c etc. FAIL on 32-bit SPARC #101667

Open
@rorth

Description

@rorth

Two profile tests FAIL on 32-bit Linux/sparc64:

  Profile-sparc :: ContinuousSyncMode/runtime-counter-relocation.c
  Profile-sparc :: ContinuousSyncMode/set-file-object.c

while the same tests work just fine on 64-bit. It turns out the same failures occur on Solaris/sparcv9: the tests don't seem to be actually Linux-specific. In fact, on Solaris/amd64 they PASS for both i386 and x86_64.

Here are the actual failues:

  Profile-sparc :: ContinuousSyncMode/runtime-counter-relocation.c

compiler-rt/test/profile/ContinuousSyncMode/runtime-counter-relocation.c:14:23: error: CHECK-COUNTS-NEXT: expected string not found in input
// CHECK-COUNTS-NEXT: Function count: 1
                      ^
<stdin>:4:13: note: scanning from here
 Counters: 2
            ^
<stdin>:5:2: note: possible intended match here
 Function count: 0
 ^

  output is

Counters:
  main:
    Hash: 0x000000000a498458
    Counters: 2
    Function count: 0
    Block counts: [0]
Instrumentation level: Front-end
Functions shown: 1
Total functions: 1
Maximum function count: 0
Maximum internal block count: 0

and

  Profile-sparc :: ContinuousSyncMode/set-file-object.c

compiler-rt/test/profile/ContinuousSyncMode/set-file-object.c:32:11: error: MERGE: expected string not found in input
// MERGE: Function count: 32
          ^
<stdin>:9:13: note: scanning from here
 Counters: 1
            ^
<stdin>:10:2: note: possible intended match here
 Function count: 0
 ^

  outpus is

Counters:
  main:
    Hash: 0x275ce4c29c65beba
    Counters: 11
    Function count: 1
    Block counts: [0, 0, 0, 0, 0, 0, 0, 0, 1, 0]
  coverage_test:
    Hash: 0x0000000000000018
    Counters: 1
    Function count: 0
    Block counts: []
Instrumentation level: Front-end
Functions shown: 2
Total functions: 2
Maximum function count: 1
Maximum internal block count: 1

Maybe one of the developers (@ZequanWu, @DavidSpickett, @petrhosek, @vedantk) can shed some light on where to start looking? These are among the very few last failing tests on Linux/sparc64.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions