ninja: Entering directory `out/gn' [0/2] ACTION //llvm/test:check-llvm(//llvm/utils/gn/build/toolchain:unix) llvm-lit: /Users/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /Users/thakis/src/llvm-project/out/gn/bin/ld.lld llvm-lit: /Users/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /Users/thakis/src/llvm-project/out/gn/bin/lld-link llvm-lit: /Users/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /Users/thakis/src/llvm-project/out/gn/bin/ld64.lld llvm-lit: /Users/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /Users/thakis/src/llvm-project/out/gn/bin/wasm-ld -- Testing: 56548 tests, 8 workers -- Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (24840 of 56548) ******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ******************** Exit Code: 1 Command Output (stderr): -- RUN: at line 2: /Users/thakis/src/llvm-project/out/gn/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S < /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck --check-prefix=INSTRUMENT /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll + /Users/thakis/src/llvm-project/out/gn/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S + /Users/thakis/src/llvm-project/out/gn/bin/FileCheck --check-prefix=INSTRUMENT /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll RUN: at line 4: /Users/thakis/src/llvm-project/out/gn/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S < /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck --check-prefix=LOWERING /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll + /Users/thakis/src/llvm-project/out/gn/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S + /Users/thakis/src/llvm-project/out/gn/bin/FileCheck --check-prefix=LOWERING /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:12:13: error: LOWERING: expected string not found in input ; LOWERING: @an_entrypoint_ctx_root = global { ptr, ptr, ptr, i8 } zeroinitializer ^ :1:1: note: scanning from here ; ModuleID = '' ^ :4:1: note: possible intended match here @an_entrypoint_ctx_root = global { ptr, ptr, ptr, i64, i8 } zeroinitializer ^ /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0 ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2) ^ :17:2: note: possible intended match here %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2) ^ /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1 ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0) ^ :103:2: note: possible intended match here %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0) ^ /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2 ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0) ^ :111:2: note: possible intended match here %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0) ^ /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3 ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1) ^ :130:2: note: possible intended match here %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1) ^ /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4 ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0) ^ :147:2: note: possible intended match here %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0) ^ Input file: Check file: /Users/thakis/src/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll -dump-input=help explains the following input dump. Input was: <<<<<< 1: ; ModuleID = '' check:12'0 X~~~~~~~~~~~~~~~~~~~~~~ error: no match found 2: source_filename = "" check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3: check:12'0 ~ 4: @an_entrypoint_ctx_root = global { ptr, ptr, ptr, i64, i8 } zeroinitializer check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ check:12'1 ? possible intended match 5: @another_entrypoint_no_callees_ctx_root = global { ptr, ptr, ptr, i64, i8 } zeroinitializer check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6: @__llvm_ctx_profile_callsite = external hidden thread_local global ptr check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7: @__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8: @0 = internal global { ptr, ptr, i8 } zeroinitializer check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 9: @1 = internal global { ptr, ptr, i8 } zeroinitializer check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10: @2 = internal global { ptr, ptr, i8 } zeroinitializer check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 11: @3 = internal global { ptr, ptr, i8 } zeroinitializer check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 12: @4 = internal global { ptr, ptr, i8 } zeroinitializer check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 13: check:12'0 ~ 14: declare void @bar() check:12'0 ~~~~~~~~~~~~~~~~~~~~ 15: check:12'0 ~ 16: define void @foo(i32 %a, ptr %fct) !guid !0 { check:12'0 ~~~~~~~~~~~~~~~~~ next:42'0 X error: match failed for invalid pattern next:42'1 undefined variable: GLOB0 17: %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2) next:42'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ next:42'2 ? possible intended match 18: %2 = ptrtoint ptr %1 to i64 next:42'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 19: %3 = and i64 %2, 1 next:42'0 ~~~~~~~~~~~~~~~~~~~~ 20: %4 = call ptr @llvm.threadlocal.address.p0(ptr @__llvm_ctx_profile_expected_callee) next:42'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 21: %5 = getelementptr ptr, ptr %4, i64 %3 next:42'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 22: %6 = call ptr @llvm.threadlocal.address.p0(ptr @__llvm_ctx_profile_callsite) next:42'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ . . . 97: no: ; preds = %0 98: call void @__llvm_ctx_profile_release_context(ptr @another_entrypoint_no_callees_ctx_root) 99: ret void 100: } 101: 102: define void @simple(i32 %a) !guid !3 { next:184'0 X error: match failed for invalid pattern next:184'1 undefined variable: GLOB1 103: %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0) next:184'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ next:184'2 ? possible intended match 104: %2 = ptrtoint ptr %1 to i64 next:184'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 105: %3 = and i64 %2, -2 next:184'0 ~~~~~~~~~~~~~~~~~~~~~ 106: %4 = inttoptr i64 %3 to ptr next:184'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 107: ret void next:184'0 ~~~~~~~~~~ 108: } next:184'0 ~~ 109: next:184'0 ~ 110: define i32 @no_callsites(i32 %a) !guid !4 { next:184'0 ~~~~~~~~~~~~~~~~~~~~~~~~~ next:208'0 X error: match failed for invalid pattern next:208'1 undefined variable: GLOB2 111: %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0) next:208'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ next:208'2 ? possible intended match 112: %2 = ptrtoint ptr %1 to i64 next:208'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 113: %3 = and i64 %2, -2 next:208'0 ~~~~~~~~~~~~~~~~~~~~~ 114: %4 = inttoptr i64 %3 to ptr next:208'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 115: %c = icmp eq i32 %a, 0 next:208'0 ~~~~~~~~~~~~~~~~~~~~~~~~ 116: br i1 %c, label %yes, label %no next:208'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ . . . 124: next:208'0 ~ 125: no: ; preds = %0 next:208'0 ~~~~~~~~~~~~~~~~~ 126: ret i32 0 next:208'0 ~~~~~~~~~~~ 127: } next:208'0 ~~ 128: next:208'0 ~ 129: define void @no_counters() !guid !5 { next:208'0 ~~~~~~~~~~~~~~~~~~~~~~~~~ next:240'0 X error: match failed for invalid pattern next:240'1 undefined variable: GLOB3 130: %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1) next:240'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ next:240'2 ? possible intended match 131: %2 = ptrtoint ptr %1 to i64 next:240'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 132: %3 = and i64 %2, 1 next:240'0 ~~~~~~~~~~~~~~~~~~~~ 133: %4 = call ptr @llvm.threadlocal.address.p0(ptr @__llvm_ctx_profile_expected_callee) next:240'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 134: %5 = getelementptr ptr, ptr %4, i64 %3 next:240'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 135: %6 = call ptr @llvm.threadlocal.address.p0(ptr @__llvm_ctx_profile_callsite) next:240'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ . . . 141: store volatile ptr %10, ptr %7, align 8 next:240'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 142: call void @bar() next:240'0 ~~~~~~~~~~~~~~~~~~ 143: ret void next:240'0 ~~~~~~~~~~ 144: } next:240'0 ~~ 145: next:240'0 ~ 146: define void @inlineasm() !guid !6 { next:240'0 ~~~~~~~~~~~~~~~~~~~~~~~ next:268'0 X error: match failed for invalid pattern next:268'1 undefined variable: GLOB4 147: %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0) next:268'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ next:268'2 ? possible intended match 148: %2 = ptrtoint ptr %1 to i64 next:268'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 149: %3 = and i64 %2, -2 next:268'0 ~~~~~~~~~~~~~~~~~~~~~ 150: %4 = inttoptr i64 %3 to ptr next:268'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 151: call void asm "nop", ""() next:268'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 152: ret void next:268'0 ~~~~~~~~~~ . . . >>>>>> -- ******************** Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. ******************** Failed Tests (1): LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll Testing Time: 729.28s Total Discovered Tests: 64616 Skipped : 32 (0.05%) Unsupported : 2333 (3.61%) Passed : 62073 (96.06%) Expectedly Failed: 177 (0.27%) Failed : 1 (0.00%) FAILED: gen/llvm/test/run-lit python3 bin/llvm-lit -sv ../../llvm/test ninja: build stopped: subcommand failed. Command '['ninja', '-C', 'out/gn', 'check-llvm']' returned non-zero exit status 1.