Skip to content

Commit

Permalink
Fix a typo in asm string of BP* family of instructions. With this fix
Browse files Browse the repository at this point in the history
I am able to compile/assemble/link/run /bin/echo from FreeBSD.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183537 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rdivacky committed Jun 7, 2013
1 parent 2e2630b commit 6ca5fd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Target/Sparc/SparcInstr64Bit.td
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/SPARC/64cond.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6ca5fd3

Please sign in to comment.