File: 2003-07-07-BadLongConst.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 (22 lines) | stat: -rw-r--r-- 711 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
; RUN: llvm-upgrade %s | llvm-as | llc


%.str_1 = internal constant [42 x sbyte] c"   ui = %u (0x%x)\09\09UL-ui = %lld (0x%llx)\0A\00"

implementation   ; Functions:

declare int %printf(sbyte*, ...)

internal ulong %getL() {
entry:          ; No predecessors!
        ret ulong 12659530247033960611
}

int %main(int %argc.1, sbyte** %argv.1) {
entry:          ; No predecessors!
        %tmp.11 = call ulong %getL( )
        %tmp.5 = cast ulong %tmp.11 to uint
        %tmp.23 = and ulong %tmp.11, 18446744069414584320
        %tmp.16 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([42 x sbyte]* %.str_1, long 0, long 0), uint %tmp.5, uint %tmp.5, ulong %tmp.23, ulong %tmp.23 )
        ret int 0
}