summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2013-06-07 17:46:57 +0000
committerRoman Divacky <rdivacky@freebsd.org>2013-06-07 17:46:57 +0000
commit158d8069ad3cf660dceac4e4e1b150f5cb03289c (patch)
tree997b5451c444258a9a5ad111b592d0d66d6a9779
parentee4ca9ba0e249443a4c772a98635c69d39687819 (diff)
downloadbcm5719-llvm-158d8069ad3cf660dceac4e4e1b150f5cb03289c.tar.gz
bcm5719-llvm-158d8069ad3cf660dceac4e4e1b150f5cb03289c.zip
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. llvm-svn: 183537
-rw-r--r--llvm/lib/Target/Sparc/SparcInstr64Bit.td2
-rw-r--r--llvm/test/CodeGen/SPARC/64cond.ll4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstr64Bit.td b/llvm/lib/Target/Sparc/SparcInstr64Bit.td
index 21ac4a7dc16..a37b1583dc8 100644
--- a/llvm/lib/Target/Sparc/SparcInstr64Bit.td
+++ b/llvm/lib/Target/Sparc/SparcInstr64Bit.td
@@ -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.
diff --git a/llvm/test/CodeGen/SPARC/64cond.ll b/llvm/test/CodeGen/SPARC/64cond.ll
index f0f6f9e749a..a586bce5754 100644
--- a/llvm/test/CodeGen/SPARC/64cond.ll
+++ b/llvm/test/CodeGen/SPARC/64cond.ll
@@ -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
OpenPOWER on IntegriCloud