28 lines · plain
1; RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=functions --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t2; RUN: FileCheck --check-prefixes=CHECK-FINAL --input-file=%t %s3 4; Test handling of ifunc. Make sure function reduction doesn't create5; invalid ifunc6 7 8; CHECK-INTERESTINGNESS: define void @no_ifunc_interesting9 10; CHECK-FINAL: @ifunc1 = ifunc void (), ptr @has_ifunc11; CHECK-FINAL: define void @no_ifunc_interesting() {12; CHECK-FINAL-NOT: define13 14@ifunc1 = ifunc void (), ptr @has_ifunc15 16 17define ptr @has_ifunc() {18 ret ptr inttoptr (i64 124 to ptr)19}20 21define void @no_ifunc_interesting() {22 ret void23}24 25define void @no_ifunc_boring() {26 ret void27}28