File: return-val-i128.ll

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (36 lines) | stat: -rw-r--r-- 1,422 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--

define i128 @__fixsfdi(float %a) {
entry:
	%a_addr = alloca float		; <ptr> [#uses=4]
	%retval = alloca i128, align 16		; <ptr> [#uses=2]
	%tmp = alloca i128, align 16		; <ptr> [#uses=3]
	%"alloca point" = bitcast i32 0 to i32		; <i32> [#uses=0]
	store float %a, ptr %a_addr
	%tmp1 = load float, ptr %a_addr, align 4		; <float> [#uses=1]
	%tmp2 = fcmp olt float %tmp1, 0.000000e+00		; <i1> [#uses=1]
	%tmp23 = zext i1 %tmp2 to i8		; <i8> [#uses=1]
	%toBool = icmp ne i8 %tmp23, 0		; <i1> [#uses=1]
	br i1 %toBool, label %bb, label %bb8
bb:		; preds = %entry
	%tmp4 = load float, ptr %a_addr, align 4		; <float> [#uses=1]
	%tmp5 = fsub float -0.000000e+00, %tmp4		; <float> [#uses=1]
	%tmp6 = call i128 @__fixunssfDI( float %tmp5 ) nounwind 		; <i128> [#uses=1]
	%tmp7 = sub i128 0, %tmp6		; <i128> [#uses=1]
	store i128 %tmp7, ptr %tmp, align 16
	br label %bb11
bb8:		; preds = %entry
	%tmp9 = load float, ptr %a_addr, align 4		; <float> [#uses=1]
	%tmp10 = call i128 @__fixunssfDI( float %tmp9 ) nounwind 		; <i128> [#uses=1]
	store i128 %tmp10, ptr %tmp, align 16
	br label %bb11
bb11:		; preds = %bb8, %bb
	%tmp12 = load i128, ptr %tmp, align 16		; <i128> [#uses=1]
	store i128 %tmp12, ptr %retval, align 16
	br label %return
return:		; preds = %bb11
	%retval13 = load i128, ptr %retval		; <i128> [#uses=1]
	ret i128 %retval13
}

declare i128 @__fixunssfDI(float)