diff options
| author | James Y Knight <jyknight@google.com> | 2016-02-10 17:47:20 +0000 |
|---|---|---|
| committer | James Y Knight <jyknight@google.com> | 2016-02-10 17:47:20 +0000 |
| commit | 26fc9bf6824cb0ab536aadd52c3b2516a3a6ffee (patch) | |
| tree | b97ae95238fb318baf94e667e1827e68db21a19b /llvm/test/MC/Sparc/sparc-ctrl-instructions.s | |
| parent | f6c9ae9c6d83133d49db42925f2b1ed490b788b6 (diff) | |
| download | bcm5719-llvm-26fc9bf6824cb0ab536aadd52c3b2516a3a6ffee.tar.gz bcm5719-llvm-26fc9bf6824cb0ab536aadd52c3b2516a3a6ffee.zip | |
[SPARC] Repair floating-point condition encodings in assembly parser.
The encodings for floating point conditions A(lways) and N(ever) were
incorrectly specified for the assembly parser, per Sparc manual v8 page
121. This change corrects that mistake.
Also, strangely, all of the branch instructions already had MC test
cases, except for the broken ones. Added the tests.
Patch by Chris Dewhurst
Differential Revision: http://reviews.llvm.org/D17074
llvm-svn: 260390
Diffstat (limited to 'llvm/test/MC/Sparc/sparc-ctrl-instructions.s')
| -rw-r--r-- | llvm/test/MC/Sparc/sparc-ctrl-instructions.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/MC/Sparc/sparc-ctrl-instructions.s b/llvm/test/MC/Sparc/sparc-ctrl-instructions.s index bcb625b17e6..ccfa36a0b14 100644 --- a/llvm/test/MC/Sparc/sparc-ctrl-instructions.s +++ b/llvm/test/MC/Sparc/sparc-ctrl-instructions.s @@ -124,6 +124,18 @@ ! CHECK-NEXT: ! fixup A - offset: 0, value: .BB0, kind: fixup_sparc_br22 bvs .BB0 + ! CHECK: fba .BB0 ! encoding: [0x11,0b10AAAAAA,A,A] + ! CHECK-NEXT: ! fixup A - offset: 0, value: .BB0, kind: fixup_sparc_br22 + fba .BB0 + + ! CHECK: fba .BB0 ! encoding: [0x11,0b10AAAAAA,A,A] + ! CHECK-NEXT: ! fixup A - offset: 0, value: .BB0, kind: fixup_sparc_br22 + fb .BB0 + + ! CHECK: fbn .BB0 ! encoding: [0x01,0b10AAAAAA,A,A] + ! CHECK-NEXT: ! fixup A - offset: 0, value: .BB0, kind: fixup_sparc_br22 + fbn .BB0 + ! CHECK: fbu .BB0 ! encoding: [0x0f,0b10AAAAAA,A,A] ! CHECK-NEXT: ! fixup A - offset: 0, value: .BB0, kind: fixup_sparc_br22 fbu .BB0 @@ -131,6 +143,7 @@ ! CHECK: fbg .BB0 ! encoding: [0x0d,0b10AAAAAA,A,A] ! CHECK-NEXT: ! fixup A - offset: 0, value: .BB0, kind: fixup_sparc_br22 fbg .BB0 + ! CHECK: fbug .BB0 ! encoding: [0x0b,0b10AAAAAA,A,A] ! CHECK-NEXT: ! fixup A - offset: 0, value: .BB0, kind: fixup_sparc_br22 fbug .BB0 |

