Skip to content

Commit 68922f7

Browse files
committed
[NFC][Reduce] Add a test showing that we fail to to reduce single/last feature
1 parent 4464d90 commit 68922f7

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2+
; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
3+
4+
define i32 @t(i32 %a0, i32 %a1, i32 %a2) {
5+
; CHECK-ALL-LABEL: @t
6+
; CHECK-FINAL: (i32 %a0) {
7+
;
8+
; CHECK-INTERESTINGNESS: ret i32
9+
; CHECK-FINAL: ret i32 undef
10+
11+
ret i32 %a1
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2+
; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
3+
4+
define i32 @t(i32 %a0) {
5+
; CHECK-ALL-LABEL: @t
6+
; CHECK-FINAL: (i32 %a0) {
7+
;
8+
; CHECK-INTERESTINGNESS: ret i32
9+
; CHECK-FINAL: ret i32 42
10+
11+
ret i32 42
12+
}

0 commit comments

Comments
 (0)