[llvm] r183537 - Fix a typo in asm string of BP* family of instructions. With this fix
Roman Divacky
rdivacky at freebsd.org
Fri Jun 7 10:46:57 PDT 2013
Author: rdivacky
Date: Fri Jun 7 12:46:57 2013
New Revision: 183537
URL: http://llvm.org/viewvc/llvm-project?rev=183537&view=rev
Log:
Fix a typo in asm string of BP* family of instructions. With this fix
I am able to compile/assemble/link/run /bin/echo from FreeBSD.
Modified:
llvm/trunk/lib/Target/Sparc/SparcInstr64Bit.td
llvm/trunk/test/CodeGen/SPARC/64cond.ll
Modified: llvm/trunk/lib/Target/Sparc/SparcInstr64Bit.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcInstr64Bit.td?rev=183537&r1=183536&r2=183537&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcInstr64Bit.td (original)
+++ llvm/trunk/lib/Target/Sparc/SparcInstr64Bit.td Fri Jun 7 12:46:57 2013
@@ -308,7 +308,7 @@ let Predicates = [Is64Bit] in {
let Uses = [ICC] in
def BPXCC : BranchSP<0, (ins brtarget:$dst, CCOp:$cc),
- "bp$cc %xcc, $dst",
+ "b$cc %xcc, $dst",
[(SPbrxcc bb:$dst, imm:$cc)]>;
// Conditional moves on %xcc.
Modified: llvm/trunk/test/CodeGen/SPARC/64cond.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SPARC/64cond.ll?rev=183537&r1=183536&r2=183537&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SPARC/64cond.ll (original)
+++ llvm/trunk/test/CodeGen/SPARC/64cond.ll Fri Jun 7 12:46:57 2013
@@ -3,7 +3,7 @@
; CHECK: cmpri
; CHECK: cmp %i1, 1
-; CHECK: bpe %xcc,
+; CHECK: be %xcc,
define void @cmpri(i64* %p, i64 %x) {
entry:
%tobool = icmp eq i64 %x, 1
@@ -19,7 +19,7 @@ if.end:
; CHECK: cmprr
; CHECK: cmp %i1, %i2
-; CHECK: bpgu %xcc,
+; CHECK: bgu %xcc,
define void @cmprr(i64* %p, i64 %x, i64 %y) {
entry:
%tobool = icmp ugt i64 %x, %y
More information about the llvm-commits
mailing list