brintos

brintos / llvm-project-archived public Read only

0
0
Text · 775 B · 187b123 Raw
30 lines · plain
1; Test that llvm-reduce inserts valid return instructions for functions with2; on-void return types.3;4; RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=basic-blocks --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t5; RUN: FileCheck %s < %t6 7; CHECK-INTERESTINGNESS: interesting:8; CHECK-INTERESTINGNESS: interesting2:9 10define i32 @main(i1 %c) {11; CHECK-LABEL: define i32 @main(i1 %c) {12; CHECK-LABEL: interesting:13; CHECK-NEXT:    br label %interesting214 15; CHECK-LABEL: interesting2:16; CHECK-NEXT:    ret i32 017 18interesting:19  br label %interesting220 21interesting2:22  br i1 true, label %uninteresting1, label %uninteresting23 24uninteresting:25  br label %uninteresting126 27uninteresting1:28  ret i32 1029}30