File: 2007-10-16-CoalescerCrash.ll

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (31 lines) | stat: -rw-r--r-- 1,365 bytes parent folder | download | duplicates (43)
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
; RUN: llc < %s -mtriple=x86_64-apple-darwin

define i64 @__ashldi3(i64 %u, i64 %b) {
entry:
        br i1 false, label %UnifiedReturnBlock, label %cond_next

cond_next:              ; preds = %entry
        %tmp9 = sub i64 32, %b          ; <i64> [#uses=2]
        %tmp11 = icmp slt i64 %tmp9, 1          ; <i1> [#uses=1]
        %tmp2180 = trunc i64 %u to i32          ; <i32> [#uses=2]
        %tmp2223 = trunc i64 %tmp9 to i32               ; <i32> [#uses=2]
        br i1 %tmp11, label %cond_true14, label %cond_false

cond_true14:            ; preds = %cond_next
        %tmp24 = sub i32 0, %tmp2223            ; <i32> [#uses=1]
        %tmp25 = shl i32 %tmp2180, %tmp24               ; <i32> [#uses=1]
        %tmp2569 = zext i32 %tmp25 to i64               ; <i64> [#uses=1]
        %tmp256970 = shl i64 %tmp2569, 32               ; <i64> [#uses=1]
        ret i64 %tmp256970

cond_false:             ; preds = %cond_next
        %tmp35 = lshr i32 %tmp2180, %tmp2223            ; <i32> [#uses=1]
        %tmp54 = or i32 %tmp35, 0               ; <i32> [#uses=1]
        %tmp5464 = zext i32 %tmp54 to i64               ; <i64> [#uses=1]
        %tmp546465 = shl i64 %tmp5464, 32               ; <i64> [#uses=1]
        %tmp546465.ins = or i64 %tmp546465, 0           ; <i64> [#uses=1]
        ret i64 %tmp546465.ins

UnifiedReturnBlock:
        ret i64 %u
}