brintos

brintos / llvm-project-archived public Read only

0
0
Text · 853 B · fc31a08 Raw
24 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; INTERESTING-LABEL: define float @callee(5; INTERESTING: fadd float6define float @callee(float %a) {7  %x = fadd float %a, 1.08  ret float %x9}10 11; INTERESTING-LABEL: define float @caller(12; INTERESTING: load float13 14; REDUCED-LABEL: define float @caller(ptr %ptr, float %val, float %callee.ret1) {15; REDUCED: %callee.ret12 = call nnan nsz float @callee(float %val, float 0.000000e+00), !fpmath !016define float @caller(ptr %ptr) {17  %val = load float, ptr %ptr18  %callee.ret = call nnan nsz float @callee(float %val), !fpmath !019  ret float %callee.ret20}21 22; REDUCED: !0 = !{float 2.000000e+00}23!0 = !{float 2.0}24