diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2013-06-07 17:46:57 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2013-06-07 17:46:57 +0000 |
commit | 6ca5fd3f30081853cfcf7f83a310f94aac2c5e17 (patch) | |
tree | 1533d2a16aab2a1ef63d9a189de418b44077fe25 | |
parent | 2e2630b4623965f890f1f263119e3e495b7bd676 (diff) | |
download | llvm-6ca5fd3f30081853cfcf7f83a310f94aac2c5e17.tar.gz llvm-6ca5fd3f30081853cfcf7f83a310f94aac2c5e17.tar.bz2 llvm-6ca5fd3f30081853cfcf7f83a310f94aac2c5e17.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183537 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Sparc/SparcInstr64Bit.td | 2 | ||||
-rw-r--r-- | test/CodeGen/SPARC/64cond.ll | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/Sparc/SparcInstr64Bit.td b/lib/Target/Sparc/SparcInstr64Bit.td index 21ac4a7dc1..a37b1583dc 100644 --- a/lib/Target/Sparc/SparcInstr64Bit.td +++ b/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/test/CodeGen/SPARC/64cond.ll b/test/CodeGen/SPARC/64cond.ll index f0f6f9e749..a586bce575 100644 --- a/test/CodeGen/SPARC/64cond.ll +++ b/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 |