[llvm] r186291 - Use conventional syntax for branches.
Anton Korobeynikov
asl at math.spbu.ru
Sun Jul 14 11:19:44 PDT 2013
Author: asl
Date: Sun Jul 14 13:19:44 2013
New Revision: 186291
URL: http://llvm.org/viewvc/llvm-project?rev=186291&view=rev
Log:
Use conventional syntax for branches.
Patch by Job!
Modified:
llvm/trunk/lib/Target/MSP430/MSP430InstrInfo.td
llvm/trunk/test/CodeGen/MSP430/indirectbr2.ll
llvm/trunk/test/CodeGen/MSP430/jumptable.ll
Modified: llvm/trunk/lib/Target/MSP430/MSP430InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430InstrInfo.td?rev=186291&r1=186290&r2=186291&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430InstrInfo.td (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430InstrInfo.td Sun Jul 14 13:19:44 2013
@@ -183,10 +183,10 @@ let isBarrier = 1 in {
"br\t$brdst",
[(brind tblockaddress:$brdst)]>;
def Br : I16rr<0, (outs), (ins GR16:$brdst),
- "mov.w\t{$brdst, pc}",
+ "br\t$brdst",
[(brind GR16:$brdst)]>;
def Bm : I16rm<0, (outs), (ins memsrc:$brdst),
- "mov.w\t{$brdst, pc}",
+ "br\t$brdst",
[(brind (load addr:$brdst))]>;
}
}
Modified: llvm/trunk/test/CodeGen/MSP430/indirectbr2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/MSP430/indirectbr2.ll?rev=186291&r1=186290&r2=186291&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/MSP430/indirectbr2.ll (original)
+++ llvm/trunk/test/CodeGen/MSP430/indirectbr2.ll Sun Jul 14 13:19:44 2013
@@ -5,7 +5,7 @@ define internal i16 @foo(i16 %i) nounwin
entry:
%tmp1 = getelementptr inbounds [5 x i8*]* @C.0.2070, i16 0, i16 %i ; <i8**> [#uses=1]
%gotovar.4.0 = load i8** %tmp1, align 4 ; <i8*> [#uses=1]
-; CHECK: mov.w .LC.0.2070(r12), pc
+; CHECK: br .LC.0.2070(r12)
indirectbr i8* %gotovar.4.0, [label %L5, label %L4, label %L3, label %L2, label %L1]
L5: ; preds = %bb2
Modified: llvm/trunk/test/CodeGen/MSP430/jumptable.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/MSP430/jumptable.ll?rev=186291&r1=186290&r2=186291&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/MSP430/jumptable.ll (original)
+++ llvm/trunk/test/CodeGen/MSP430/jumptable.ll Sun Jul 14 13:19:44 2013
@@ -13,7 +13,7 @@ entry:
%0 = load i16* %i.addr, align 2
; CHECK: mov.w #2, r14
; CHECK: call #__mulhi3hw_noint
-; CHECK: mov.w .LJTI0_0(r15), pc
+; CHECK: br .LJTI0_0(r15)
switch i16 %0, label %sw.default [
i16 0, label %sw.bb
i16 1, label %sw.bb1
More information about the llvm-commits
mailing list