brintos

brintos / llvm-project-archived public Read only

0
0
Text · 543 B · 7611d5f Raw
18 lines · plain
1; RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=simplify-instructions --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t2; RUN: FileCheck --check-prefix=RESULT %s < %t3 4; CHECK-INTERESTINGNESS: ret5 6; RESULT: %add4 = add i32 %arg0, %arg17; RESULT: ret i32 %add48 9define i32 @func(i32 %arg0, i32 %arg1) {10entry:11  %add0 = add i32 %arg0, 012  %add1 = add i32 %add0, 013  %add2 = add i32 %add1, 014  %add3 = add i32 %arg1, 015  %add4 = add i32 %add2, %add316  ret i32 %add417}18