[llvm-commits] [llvm] r75961 - in /llvm/trunk: lib/Target/SystemZ/SystemZInstrInfo.td test/CodeGen/SystemZ/07-BrUnCond.ll
Anton Korobeynikov
asl at math.spbu.ru
Thu Jul 16 06:57:54 PDT 2009
Author: asl
Date: Thu Jul 16 08:57:52 2009
New Revision: 75961
URL: http://llvm.org/viewvc/llvm-project?rev=75961&view=rev
Log:
Completel forgot about unconditional branches
Added:
llvm/trunk/test/CodeGen/SystemZ/07-BrUnCond.ll
Modified:
llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td
Modified: llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td?rev=75961&r1=75960&r2=75961&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td Thu Jul 16 08:57:52 2009
@@ -271,6 +271,9 @@
}
let isBranch = 1, isTerminator = 1 in {
+ let isBarrier = 1 in
+ def JMP : Pseudo<(outs), (ins brtarget:$dst), "j\t{$dst}", [(br bb:$dst)]>;
+
let Uses = [PSW] in {
def JE : Pseudo<(outs), (ins brtarget:$dst),
"je\t$dst",
Added: llvm/trunk/test/CodeGen/SystemZ/07-BrUnCond.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/07-BrUnCond.ll?rev=75961&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/07-BrUnCond.ll (added)
+++ llvm/trunk/test/CodeGen/SystemZ/07-BrUnCond.ll Thu Jul 16 08:57:52 2009
@@ -0,0 +1,18 @@
+; RUN: llvm-as < %s | llc
+
+target datalayout = "E-p:64:64:64-i1:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128"
+target triple = "s390x-linux"
+
+define void @foo() noreturn nounwind {
+entry:
+ tail call void @baz() nounwind
+ br label %l1
+
+l1: ; preds = %entry, %l1
+ tail call void @bar() nounwind
+ br label %l1
+}
+
+declare void @bar()
+
+declare void @baz()
More information about the llvm-commits
mailing list