File: pre-split7.ll

package info (click to toggle)
llvm-2.7 2.7-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 59,992 kB
  • ctags: 49,499
  • sloc: cpp: 373,792; ansic: 16,885; sh: 12,614; asm: 6,809; ada: 3,083; ml: 2,942; python: 2,671; perl: 2,404; makefile: 1,691; pascal: 1,235; exp: 399; objc: 291; lisp: 184; csh: 117; xml: 38; f90: 36
file content (34 lines) | stat: -rw-r--r-- 1,362 bytes parent folder | download | duplicates (2)
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
; RUN: llc < %s -march=x86 -mattr=+sse2 -pre-alloc-split

@object_distance = external global double, align 8		; <double*> [#uses=1]
@axis_slope_angle = external global double, align 8		; <double*> [#uses=1]
@current_surfaces.b = external global i1		; <i1*> [#uses=1]

declare double @sin(double) nounwind readonly

declare double @asin(double) nounwind readonly

declare double @tan(double) nounwind readonly

define fastcc void @trace_line(i32 %line) nounwind {
entry:
	%.b3 = load i1* @current_surfaces.b		; <i1> [#uses=1]
	br i1 %.b3, label %bb, label %return

bb:		; preds = %bb, %entry
	%0 = tail call double @asin(double 0.000000e+00) nounwind readonly		; <double> [#uses=1]
	%1 = fadd double 0.000000e+00, %0		; <double> [#uses=2]
	%2 = tail call double @asin(double 0.000000e+00) nounwind readonly		; <double> [#uses=1]
	%3 = fsub double %1, %2		; <double> [#uses=2]
	store double %3, double* @axis_slope_angle, align 8
	%4 = fdiv double %1, 2.000000e+00		; <double> [#uses=1]
	%5 = tail call double @sin(double %4) nounwind readonly		; <double> [#uses=1]
	%6 = fmul double 0.000000e+00, %5		; <double> [#uses=1]
	%7 = tail call double @tan(double %3) nounwind readonly		; <double> [#uses=0]
	%8 = fadd double 0.000000e+00, %6		; <double> [#uses=1]
	store double %8, double* @object_distance, align 8
	br label %bb

return:		; preds = %entry
	ret void
}