32 lines · plain
1; RUN: llvm-reduce %s -o %t --abort-on-invalid-reduction --delta-passes=operands-to-args --test FileCheck --test-arg %s --test-arg --check-prefix=INTERESTING --test-arg --input-file2; RUN: FileCheck %s --input-file %t --check-prefix=REDUCED3 4@a = dso_local global i8 0, align 15@b = dso_local global i16 0, align 26 7 8declare ptr @callee(ptr %a, i16)9 10; INTERESTING-LABEL: define ptr @caller(11; INTERESTING: sext12; INTERESTING: icmp13 14; REDUCED-LABEL: define ptr @caller(ptr %some.ptr, ptr %a, i8 %ld0, ptr %b, i16 %ld1, i32 %conv, i32 %conv1, i1 %cmp, i16 %conv2, ptr %callee.ret) #0 {15 16; REDUCED: %callee.ret8 = call align 8 ptr @callee(ptr align 8 "some-attr" %some.ptr, i16 signext %conv2) #117 18define ptr @caller(ptr %some.ptr) nounwind {19entry:20 %ld0 = load i8, ptr @a, align 121 %conv = zext i8 %ld0 to i3222 %ld1 = load i16, ptr @b, align 223 %conv1 = sext i16 %ld1 to i3224 %cmp = icmp sge i32 %conv, %conv125 %conv2 = sext i1 %cmp to i1626 %callee.ret = call align 8 ptr @callee(ptr align 8 "some-attr" %some.ptr, i16 signext %conv2) nocallback27 ret ptr %callee.ret28}29 30; REDUCED: attributes #0 = { nounwind }31; REDUCED: attributes #1 = { nocallback }32