brintos

brintos / llvm-project-archived public Read only

0
0
Text · 604 B · c22837f Raw
20 lines · plain
1; RUN: llvm-reduce --abort-on-invalid-reduction --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t2; RUN: cat %t | FileCheck --check-prefixes=CHECK-FINAL %s3 4; Make sure we do not remove the terminator of the entry block. The interesting5; check only requires the result to define the function @test.6 7; Test case for PR43798.8 9; CHECK-INTERESTINGNESS: define i32 @test10 11; CHECK-FINAL:      define i32 @test12; CHECK-FINAL-NEXT: entry:13; CHECK-FINAL-NEXT:   ret i3214 15define i32 @test(i32 %x) {16entry:17  %add = add i32 %x, %x18  ret i32 %add19}20