llvm.org GIT mirror llvm / 133c0d3
ARM: Fix an old refacto. Fixes PR15520. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177167 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 7 years ago
2 changed file(s) with 13 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
13561356
13571357 OutStreamer.EmitInstruction(MCInstBuilder(ARM::MOVr)
13581358 .addReg(ARM::PC)
1359 .addImm(MI->getOperand(0).getReg())
1359 .addReg(MI->getOperand(0).getReg())
13601360 // Add predicate operands.
13611361 .addImm(ARMCC::AL)
13621362 .addReg(0)
None ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
1 ; RUN: not grep "bx lr"
0 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | FileCheck %s
21
32 %struct.anon = type { i32 (i32, i32, i32)*, i32, i32, [3 x i32], i8*, i8*, i8* }
43 @r = external global [14 x i32] ; <[14 x i32]*> [#uses=4]
76 @numi = external global i32 ; [#uses=1]
87 @counter = external global [2 x i32] ; <[2 x i32]*> [#uses=1]
98
9 ; CHECK: main_bb_2E_i_bb205_2E_i_2E_i_bb115_2E_i_2E_i:
10 ; CHECK-NOT: bx lr
1011
1112 define void @main_bb_2E_i_bb205_2E_i_2E_i_bb115_2E_i_2E_i() {
1213 newFuncRoot:
4950 icmp slt i32 %tmp166.i.i, %tmp168.i.i ; :0 [#uses=1]
5051 br i1 %0, label %bb115.i.i.bb115.i.i_crit_edge, label %bb115.i.i.bb170.i.i_crit_edge.exitStub
5152 }
53
54 define void @PR15520(void ()* %fn) {
55 call void %fn()
56 ret void
57
58 ; CHECK: PR15520:
59 ; CHECK: mov lr, pc
60 ; CHECK: mov pc, r0
61 }