brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 4079952 Raw
34 lines · plain
1; RUN: llc < %s -mtriple=thumbv7-apple-darwin -arm-atomic-cfg-tidy=0 | FileCheck %s2; RUN: llc < %s -mtriple=thumbv7-apple-darwin -arm-atomic-cfg-tidy=0 -arm-default-it | FileCheck %s3; RUN: llc < %s -mtriple=thumbv8-apple-darwin -arm-atomic-cfg-tidy=0 | FileCheck %s4 5; There shouldn't be a unconditional branch at end of bb52.6; rdar://71847877 8@posed = external global i64                      ; <ptr> [#uses=1]9 10define i1 @ab_bb52(i64 %.reload78, ptr %.out, ptr %.out1) nounwind {11newFuncRoot:12  br label %bb5213 14bb52.bb55_crit_edge.exitStub:                     ; preds = %bb5215  store i64 %0, ptr %.out16  store i64 %2, ptr %.out117  ret i1 true18 19bb52.bb53_crit_edge.exitStub:                     ; preds = %bb5220  store i64 %0, ptr %.out21  store i64 %2, ptr %.out122  ret i1 false23 24bb52:                                             ; preds = %newFuncRoot25; CHECK: movne26; CHECK: moveq27; CHECK: pop28  %0 = load i64, ptr @posed, align 4                  ; <i64> [#uses=3]29  %1 = sub i64 %0, %.reload78                     ; <i64> [#uses=1]30  %2 = ashr i64 %1, 1                             ; <i64> [#uses=3]31  %3 = icmp eq i64 %2, 0                          ; <i1> [#uses=1]32  br i1 %3, label %bb52.bb55_crit_edge.exitStub, label %bb52.bb53_crit_edge.exitStub33}34