File: thumb2-ifcvt3.ll

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (33 lines) | stat: -rw-r--r-- 1,263 bytes parent folder | download | duplicates (12)
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
; RUN: llc < %s -mtriple=thumbv7-apple-darwin -arm-atomic-cfg-tidy=0 | FileCheck %s
; RUN: llc < %s -mtriple=thumbv7-apple-darwin -arm-atomic-cfg-tidy=0 -arm-default-it | FileCheck %s
; RUN: llc < %s -mtriple=thumbv8-apple-darwin -arm-atomic-cfg-tidy=0 | FileCheck %s

; There shouldn't be a unconditional branch at end of bb52.
; rdar://7184787

@posed = external global i64                      ; <ptr> [#uses=1]

define i1 @ab_bb52(i64 %.reload78, ptr %.out, ptr %.out1) nounwind {
newFuncRoot:
  br label %bb52

bb52.bb55_crit_edge.exitStub:                     ; preds = %bb52
  store i64 %0, ptr %.out
  store i64 %2, ptr %.out1
  ret i1 true

bb52.bb53_crit_edge.exitStub:                     ; preds = %bb52
  store i64 %0, ptr %.out
  store i64 %2, ptr %.out1
  ret i1 false

bb52:                                             ; preds = %newFuncRoot
; CHECK: movne
; CHECK: moveq
; CHECK: pop
  %0 = load i64, ptr @posed, align 4                  ; <i64> [#uses=3]
  %1 = sub i64 %0, %.reload78                     ; <i64> [#uses=1]
  %2 = ashr i64 %1, 1                             ; <i64> [#uses=3]
  %3 = icmp eq i64 %2, 0                          ; <i1> [#uses=1]
  br i1 %3, label %bb52.bb55_crit_edge.exitStub, label %bb52.bb53_crit_edge.exitStub
}