ninja: Entering directory `out/gn' [0/1] ACTION //llvm/test:check-llvm(//llvm/utils/gn/build/toolchain:unix) llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/lld-link llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld64.lld llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/wasm-ld llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/lld-link llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld64.lld llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/wasm-ld -- Testing: 65593 tests, 64 workers -- Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90 FAIL: LLVM :: CodeGen/Generic/shadow-stack-gc-lowering.ll (31259 of 65593) ******************** TEST 'LLVM :: CodeGen/Generic/shadow-stack-gc-lowering.ll' FAILED ******************** Exit Code: 1 Command Output (stdout): -- # RUN: at line 2 /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/opt -S -passes='require,shadow-stack-gc-lowering' < /usr/local/google/home/thakis/src/llvm-project/llvm/test/CodeGen/Generic/shadow-stack-gc-lowering.ll | /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/FileCheck /usr/local/google/home/thakis/src/llvm-project/llvm/test/CodeGen/Generic/shadow-stack-gc-lowering.ll # executed command: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/opt -S '-passes=require,shadow-stack-gc-lowering' # executed command: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/FileCheck /usr/local/google/home/thakis/src/llvm-project/llvm/test/CodeGen/Generic/shadow-stack-gc-lowering.ll # .---command stderr------------ # | /usr/local/google/home/thakis/src/llvm-project/llvm/test/CodeGen/Generic/shadow-stack-gc-lowering.ll:12:10: error: CHECK: expected string not found in input # | ; CHECK: @__gc_single_root = internal constant %gc_map.0 { %gc_map { i32 1, i32 0 }, [0 x ptr] zeroinitializer } # | ^ # | :12:47: note: scanning from here # | @llvm_gc_root_chain = linkonce global ptr null # | ^ # | :13:1: note: possible intended match here # | @__gc_single_root = internal constant %gc_map.0 { %gc_map { i32 3, i32 0 }, [0 x ptr] zeroinitializer } # | ^ # | /usr/local/google/home/thakis/src/llvm-project/llvm/test/CodeGen/Generic/shadow-stack-gc-lowering.ll:21:15: error: CHECK-NEXT: expected string not found in input # | ; CHECK-NEXT: [[GC_FRAME:%.*]] = alloca [[GC_STACKENTRY_SINGLE_ROOT:%.*]], align 8 # | ^ # | :23:7: note: scanning from here # | entry: # | ^ # | :24:10: note: possible intended match here # | %gc_frame = alloca [24 x i8], align 8 # | ^ # | /usr/local/google/home/thakis/src/llvm-project/llvm/test/CodeGen/Generic/shadow-stack-gc-lowering.ll:48:15: error: CHECK-NEXT: expected string not found in input # | ; CHECK-NEXT: [[GC_FRAME:%.*]] = alloca [[GC_STACKENTRY_TWO_ROOTS:%.*]], align 8 # | ^ # | :38:7: note: scanning from here # | entry: # | ^ # | :39:10: note: possible intended match here # | %gc_frame = alloca [32 x i8], align 8 # | ^ # | /usr/local/google/home/thakis/src/llvm-project/llvm/test/CodeGen/Generic/shadow-stack-gc-lowering.ll:83:15: error: CHECK-NEXT: expected string not found in input # | ; CHECK-NEXT: [[GC_FRAME:%.*]] = alloca [[GC_STACKENTRY_ROOT_WITH_METADATA:%.*]], align 8 # | ^ # | :55:7: note: scanning from here # | entry: # | ^ # | :56:10: note: possible intended match here # | %gc_frame = alloca [24 x i8], align 8 # | ^ # | /usr/local/google/home/thakis/src/llvm-project/llvm/test/CodeGen/Generic/shadow-stack-gc-lowering.ll:110:15: error: CHECK-NEXT: expected string not found in input # | ; CHECK-NEXT: [[GC_FRAME:%.*]] = alloca [[GC_STACKENTRY_MIXED_METADATA:%.*]], align 8 # | ^ # | :70:7: note: scanning from here # | entry: # | ^ # | :71:10: note: possible intended match here # | %gc_frame = alloca [32 x i8], align 8 # | ^ # | /usr/local/google/home/thakis/src/llvm-project/llvm/test/CodeGen/Generic/shadow-stack-gc-lowering.ll:156:15: error: CHECK-NEXT: expected string not found in input # | ; CHECK-NEXT: [[GC_FRAME:%.*]] = alloca [[GC_STACKENTRY_WITH_INVOKE:%.*]], align 8 # | ^ # | :96:7: note: scanning from here # | entry: # | ^ # | :97:10: note: possible intended match here # | %gc_frame = alloca [24 x i8], align 8 # | ^ # | # | Input file: # | Check file: /usr/local/google/home/thakis/src/llvm-project/llvm/test/CodeGen/Generic/shadow-stack-gc-lowering.ll # | # | -dump-input=help explains the following input dump. # | # | Input was: # | <<<<<< # | . # | . # | . # | 7: %gc_map.1 = type { %gc_map, [1 x ptr] } # | 8: %gc_map.1.1 = type { %gc_map, [1 x ptr] } # | 9: %gc_map.0.2 = type { %gc_map, [0 x ptr] } # | 10: # | 11: @type_tag = external constant i8 # | 12: @llvm_gc_root_chain = linkonce global ptr null # | check:12'0 X error: no match found # | 13: @__gc_single_root = internal constant %gc_map.0 { %gc_map { i32 3, i32 0 }, [0 x ptr] zeroinitializer } # | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | check:12'1 ? possible intended match # | 14: @__gc_two_roots = internal constant %gc_map.0.0 { %gc_map { i32 4, i32 0 }, [0 x ptr] zeroinitializer } # | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 15: @__gc_root_with_metadata = internal constant %gc_map.1 { %gc_map { i32 3, i32 1 }, [1 x ptr] [ptr @type_tag] } # | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 16: @__gc_mixed_metadata = internal constant %gc_map.1.1 { %gc_map { i32 4, i32 1 }, [1 x ptr] [ptr @type_tag] } # | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 17: @__gc_with_invoke = internal constant %gc_map.0.2 { %gc_map { i32 3, i32 0 }, [0 x ptr] zeroinitializer } # | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 18: # | check:12'0 ~ # | 19: ; Function Attrs: nounwind # | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 20: declare void @llvm.gcroot(ptr, ptr) #0 # | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 21: # | check:12'0 ~ # | 22: define void @single_root(ptr %obj) gc "shadow-stack" { # | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~ # | 23: entry: # | next:21'0 X error: no match found # | 24: %gc_frame = alloca [24 x i8], align 8 # | next:21'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | next:21'1 ? possible intended match # | 25: %gc_currhead = load ptr, ptr @llvm_gc_root_chain, align 8 # | next:21'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 26: %gc_frame.map = getelementptr i8, ptr %gc_frame, i64 8 # | next:21'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 27: store ptr @__gc_single_root, ptr %gc_frame.map, align 8 # | next:21'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 28: %root = getelementptr i8, ptr %gc_frame, i64 16 # | next:21'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 29: store ptr %gc_currhead, ptr %gc_frame, align 8 # | next:21'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | . # | . # | . # | 33: store ptr %gc_savedhead, ptr @llvm_gc_root_chain, align 8 # | next:21'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 34: ret void # | next:21'0 ~~~~~~~~~~ # | 35: } # | next:21'0 ~~ # | 36: # | next:21'0 ~ # | 37: define void @two_roots(ptr %a, ptr %b) gc "shadow-stack" { # | next:21'0 ~~~~~~~~~~~~~~~~~~~~~~~ # | 38: entry: # | next:48'0 X error: no match found # | 39: %gc_frame = alloca [32 x i8], align 8 # | next:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | next:48'1 ? possible intended match # | 40: %gc_currhead = load ptr, ptr @llvm_gc_root_chain, align 8 # | next:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 41: %gc_frame.map = getelementptr i8, ptr %gc_frame, i64 8 # | next:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 42: store ptr @__gc_two_roots, ptr %gc_frame.map, align 8 # | next:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 43: %rootA = getelementptr i8, ptr %gc_frame, i64 16 # | next:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 44: %rootB = getelementptr i8, ptr %gc_frame, i64 24 # | next:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | . # | . # | . # | 50: store ptr %gc_savedhead, ptr @llvm_gc_root_chain, align 8 # | next:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 51: ret void # | next:48'0 ~~~~~~~~~~ # | 52: } # | next:48'0 ~~ # | 53: # | next:48'0 ~ # | 54: define void @root_with_metadata(ptr %obj) gc "shadow-stack" { # | next:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 55: entry: # | next:83'0 X error: no match found # | 56: %gc_frame = alloca [24 x i8], align 8 # | next:83'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | next:83'1 ? possible intended match # | 57: %gc_currhead = load ptr, ptr @llvm_gc_root_chain, align 8 # | next:83'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 58: %gc_frame.map = getelementptr i8, ptr %gc_frame, i64 8 # | next:83'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 59: store ptr @__gc_root_with_metadata, ptr %gc_frame.map, align 8 # | next:83'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 60: %root = getelementptr i8, ptr %gc_frame, i64 16 # | next:83'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 61: store ptr %gc_currhead, ptr %gc_frame, align 8 # | next:83'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | . # | . # | . # | 65: store ptr %gc_savedhead, ptr @llvm_gc_root_chain, align 8 # | next:83'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 66: ret void # | next:83'0 ~~~~~~~~~~ # | 67: } # | next:83'0 ~~ # | 68: # | next:83'0 ~ # | 69: define void @mixed_metadata(ptr %a, ptr %b) gc "shadow-stack" { # | next:83'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 70: entry: # | next:110'0 X error: no match found # | 71: %gc_frame = alloca [32 x i8], align 8 # | next:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | next:110'1 ? possible intended match # | 72: %gc_currhead = load ptr, ptr @llvm_gc_root_chain, align 8 # | next:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 73: %gc_frame.map = getelementptr i8, ptr %gc_frame, i64 8 # | next:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 74: store ptr @__gc_mixed_metadata, ptr %gc_frame.map, align 8 # | next:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 75: %rootB = getelementptr i8, ptr %gc_frame, i64 16 # | next:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 76: %rootA = getelementptr i8, ptr %gc_frame, i64 24 # | next:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | . # | . # | . # | 91: declare void @may_throw() # | 92: # | 93: declare ptr @__gxx_personality_v0(...) # | 94: # | 95: define void @with_invoke(ptr %obj) gc "shadow-stack" personality ptr @__gxx_personality_v0 { # | 96: entry: # | next:156'0 X error: no match found # | 97: %gc_frame = alloca [24 x i8], align 8 # | next:156'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | next:156'1 ? possible intended match # | 98: %gc_currhead = load ptr, ptr @llvm_gc_root_chain, align 8 # | next:156'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 99: %gc_frame.map = getelementptr i8, ptr %gc_frame, i64 8 # | next:156'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 100: store ptr @__gc_with_invoke, ptr %gc_frame.map, align 8 # | next:156'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 101: %root = getelementptr i8, ptr %gc_frame, i64 16 # | next:156'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | 102: store ptr %gc_currhead, ptr %gc_frame, align 8 # | next:156'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | . # | . # | . # | >>>>>> # `----------------------------- # error: command failed with exit status: 1 -- ******************** Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. ******************** Failed Tests (1): LLVM :: CodeGen/Generic/shadow-stack-gc-lowering.ll Testing Time: 179.82s Total Discovered Tests: 74223 Skipped : 22 (0.03%) Unsupported : 2856 (3.85%) Passed : 71171 (95.89%) Expectedly Failed: 173 (0.23%) 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.