File: operands-to-args-preserve-fmf.ll

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.4-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,236,516 kB
  • sloc: cpp: 7,619,569; ansic: 1,433,956; asm: 1,058,748; python: 252,181; f90: 94,671; objc: 70,753; lisp: 42,813; pascal: 18,401; sh: 8,601; ml: 5,111; perl: 4,720; makefile: 3,585; awk: 3,523; javascript: 2,272; xml: 892; fortran: 770
file content (23 lines) | stat: -rw-r--r-- 853 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; 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-file
; RUN: FileCheck %s --input-file %t --check-prefix=REDUCED

; INTERESTING-LABEL: define float @callee(
; INTERESTING: fadd float
define float @callee(float %a) {
  %x = fadd float %a, 1.0
  ret float %x
}

; INTERESTING-LABEL: define float @caller(
; INTERESTING: load float

; REDUCED-LABEL: define float @caller(ptr %ptr, float %val, float %callee.ret1) {
; REDUCED: %callee.ret12 = call nnan nsz float @callee(float %val, float 0.000000e+00), !fpmath !0
define float @caller(ptr %ptr) {
  %val = load float, ptr %ptr
  %callee.ret = call nnan nsz float @callee(float %val), !fpmath !0
  ret float %callee.ret
}

; REDUCED: !0 = !{float 2.000000e+00}
!0 = !{float 2.0}