File: 2006-04-26-SetCCAnd.ll

package info (click to toggle)
llvm 2.2-12
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 38,648 kB
  • ctags: 28,258
  • sloc: cpp: 215,479; sh: 12,132; ansic: 10,002; yacc: 5,525; perl: 2,352; ml: 1,580; makefile: 956; pascal: 718; lex: 602; exp: 320; ada: 193; lisp: 160; csh: 116; objc: 59; python: 59; tcl: 20
file content (43 lines) | stat: -rw-r--r-- 999 bytes parent folder | download
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
37
38
39
40
41
42
43
; RUN: llvm-upgrade < %s | llvm-as | llc
; PR748

%G = external global ushort		; <ushort*> [#uses=1]

implementation   ; Functions:

void %OmNewObjHdr() {
entry:
	br bool false, label %endif.4, label %then.0

then.0:		; preds = %entry
	ret void

endif.4:		; preds = %entry
	br bool false, label %else.3, label %shortcirc_next.3

shortcirc_next.3:		; preds = %endif.4
	ret void

else.3:		; preds = %endif.4
	switch int 0, label %endif.10 [
		 int 5001, label %then.10
		 int -5008, label %then.10
	]

then.10:		; preds = %else.3, %else.3
	%tmp.112 = load ushort* null		; <ushort> [#uses=2]
	%tmp.113 = load ushort* %G		; <ushort> [#uses=2]
	%tmp.114 = setgt ushort %tmp.112, %tmp.113		; <bool> [#uses=1]
	%tmp.120 = setlt ushort %tmp.112, %tmp.113		; <bool> [#uses=1]
	%bothcond = and bool %tmp.114, %tmp.120		; <bool> [#uses=1]
	br bool %bothcond, label %else.4, label %then.11

then.11:		; preds = %then.10
	ret void

else.4:		; preds = %then.10
	ret void

endif.10:		; preds = %else.3
	ret void
}