brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1008 B · 6a6abdd Raw
23 lines · plain
1; RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=attributes --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t2; RUN: FileCheck -check-prefix=RESULT %s < %t3 4; RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=instructions,attributes --skip-delta-passes=instructions --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t5; RUN: FileCheck -check-prefix=RESULT %s < %t6 7; RUN: not llvm-reduce -abort-on-invalid-reduction --skip-delta-passes=foo --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2>&1 | FileCheck %s --check-prefix=ERROR8 9 10; CHECK-INTERESTINGNESS: @foo11; RESULT: define void @foo() {12; RESULT-NEXT: store i3213; RESULT-NEXT: ret void14; RESULT0-NOT: attributes15 16; ERROR: unknown pass "foo"17define void @foo() #0 {18  store i32 0, ptr null19  ret void20}21 22attributes #0 = { "arstarstarst" }23