1 ; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=ifuncs --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2 ; RUN: FileCheck --check-prefixes=CHECK-FINAL --input-file=%t %s
4 ; Check some cases that should probably be invalid IR don't break
7 ; CHECK-FINAL: @ifunc_with_arg = ifunc void (), ptr @resolver_with_arg
8 @ifunc_with_arg = ifunc void (), ptr @resolver_with_arg
10 define ptr @resolver_with_arg(i64 %arg) {
11 %cast = inttoptr i64 %arg to ptr
15 ; CHECK-INTERESTINGNESS: define void @call_with_arg()
16 define void @call_with_arg() {
17 ; CHECK-FINAL: define void @call_with_arg() {
18 ; CHECK-FINAL-NEXT: call void @ifunc_with_arg()
19 ; CHECK-FINAL-NEXT: ret void
20 call void @ifunc_with_arg()