File: aarch64-address-type-promotion-assertion.ll

package info (click to toggle)
llvm-toolchain-3.9 1%3A3.9.1-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 441,060 kB
  • ctags: 428,777
  • sloc: cpp: 2,546,577; ansic: 538,318; asm: 119,677; objc: 103,316; python: 102,148; sh: 27,847; pascal: 5,626; ml: 5,510; perl: 5,293; lisp: 4,801; makefile: 2,177; xml: 686; cs: 362; php: 212; csh: 117
file content (55 lines) | stat: -rw-r--r-- 1,850 bytes parent folder | download | duplicates (20)
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
44
45
46
47
48
49
50
51
52
53
54
55
; RUN: llc -O3 -mcpu=cortex-a53 -mtriple=aarch64--linux-gnu %s -o - | FileCheck %s
; PR20188: don't crash when merging sexts.

; CHECK: foo:
define void @foo() unnamed_addr align 2 {
entry:
  br label %invoke.cont145

invoke.cont145:
  %or.cond = and i1 undef, false
  br i1 %or.cond, label %if.then274, label %invoke.cont145

if.then274:
  %0 = load i32, i32* null, align 4
  br i1 undef, label %invoke.cont291, label %if.else313

invoke.cont291:
  %idxprom.i.i.i605 = sext i32 %0 to i64
  %arrayidx.i.i.i607 = getelementptr inbounds double, double* undef, i64 %idxprom.i.i.i605
  %idxprom.i.i.i596 = sext i32 %0 to i64
  %arrayidx.i.i.i598 = getelementptr inbounds double, double* undef, i64 %idxprom.i.i.i596
  br label %if.end356

if.else313:
  %cmp314 = fcmp olt double undef, 0.000000e+00
  br i1 %cmp314, label %invoke.cont317, label %invoke.cont353

invoke.cont317:
  br i1 undef, label %invoke.cont326, label %invoke.cont334

invoke.cont326:
  %idxprom.i.i.i587 = sext i32 %0 to i64
  %arrayidx.i.i.i589 = getelementptr inbounds double, double* undef, i64 %idxprom.i.i.i587
  %sub329 = fsub fast double undef, undef
  br label %invoke.cont334

invoke.cont334:
  %lo.1 = phi double [ %sub329, %invoke.cont326 ], [ undef, %invoke.cont317 ]
  br i1 undef, label %invoke.cont342, label %if.end356

invoke.cont342:
  %idxprom.i.i.i578 = sext i32 %0 to i64
  %arrayidx.i.i.i580 = getelementptr inbounds double, double* undef, i64 %idxprom.i.i.i578
  br label %if.end356

invoke.cont353:
  %idxprom.i.i.i572 = sext i32 %0 to i64
  %arrayidx.i.i.i574 = getelementptr inbounds double, double* undef, i64 %idxprom.i.i.i572
  br label %if.end356

if.end356:
  %lo.2 = phi double [ 0.000000e+00, %invoke.cont291 ], [ %lo.1, %invoke.cont342 ], [ undef, %invoke.cont353 ], [ %lo.1, %invoke.cont334 ]
  call void null(i32 %0, double %lo.2)
  unreachable
}