File: loop-instr-form-non-inc.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (44 lines) | stat: -rw-r--r-- 1,589 bytes parent folder | download | duplicates (8)
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
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu \
; RUN:   -mcpu=pwr9 < %s | FileCheck %s

define dso_local void @test_no_inc(i32 signext %a) local_unnamed_addr nounwind align 2 {
; CHECK-LABEL: test_no_inc:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    srawi 4, 3, 31
; CHECK-NEXT:    cmpwi 3, 0
; CHECK-NEXT:    li 6, 1
; CHECK-NEXT:    li 7, 0
; CHECK-NEXT:    andc 4, 3, 4
; CHECK-NEXT:    addi 5, 4, 1
; CHECK-NEXT:    b .LBB0_2
; CHECK-NEXT:    .p2align 5
; CHECK-NEXT:  .LBB0_1: # %for.cond.cleanup
; CHECK-NEXT:    #
; CHECK-NEXT:    stb 7, 0(5)
; CHECK-NEXT:    add 5, 5, 4
; CHECK-NEXT:  .LBB0_2: # %for.cond
; CHECK-NEXT:    #
; CHECK-NEXT:    bc 4, 1, .LBB0_1
; CHECK-NEXT:  # %bb.3: # %for.body.preheader
; CHECK-NEXT:    #
; CHECK-NEXT:    add 6, 3, 6
; CHECK-NEXT:    b .LBB0_1
entry:
  %cmp10 = icmp sgt i32 %a, 0
  br label %for.cond

for.cond:                                         ; preds = %for.cond.cleanup, %entry
  %g.0 = phi i32 [ 1, %entry ], [ %g.1.lcssa, %for.cond.cleanup ]
  br i1 %cmp10, label %for.body.preheader, label %for.cond.cleanup

for.body.preheader:                               ; preds = %for.cond
  %0 = add i32 %a, %g.0
  br label %for.cond.cleanup

for.cond.cleanup:                                 ; preds = %for.body.preheader, %for.cond
  %g.1.lcssa = phi i32 [ %g.0, %for.cond ], [ %0, %for.body.preheader ]
  %arrayidx5 = getelementptr inbounds i8, ptr null, i32 %g.1.lcssa
  store i8 0, ptr %arrayidx5, align 1
  br label %for.cond
}