diff options
| author | James Y Knight <jyknight@google.com> | 2015-08-05 17:00:30 +0000 |
|---|---|---|
| committer | James Y Knight <jyknight@google.com> | 2015-08-05 17:00:30 +0000 |
| commit | bce20afe0f563aa803bf1740985f1ef5d26d7a36 (patch) | |
| tree | b5ec5c5ed0fc554345c0404399473a362fb552f8 /llvm/test/MC/Sparc | |
| parent | 81167fb799a8dd8378c2824f6fb65264403976e7 (diff) | |
| download | bcm5719-llvm-bce20afe0f563aa803bf1740985f1ef5d26d7a36.tar.gz bcm5719-llvm-bce20afe0f563aa803bf1740985f1ef5d26d7a36.zip | |
[Sparc] Fix disassembly of popc instruction.
And add tests.
Patch by David Wiberg!
llvm-svn: 244064
Diffstat (limited to 'llvm/test/MC/Sparc')
| -rw-r--r-- | llvm/test/MC/Sparc/sparcv9-instructions.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/MC/Sparc/sparcv9-instructions.s b/llvm/test/MC/Sparc/sparcv9-instructions.s index 37f4c8b2f6b..e2cb87e0630 100644 --- a/llvm/test/MC/Sparc/sparcv9-instructions.s +++ b/llvm/test/MC/Sparc/sparcv9-instructions.s @@ -21,3 +21,8 @@ ! V9: subxcc %g1, %g2, %g3 ! encoding: [0x86,0xe0,0x40,0x02] subccc %g1, %g2, %g3 + ! V8: error: instruction requires a CPU feature not currently enabled + ! V8-NEXT: popc %g1, %g2 + ! V9: popc %g1, %g2 ! encoding: [0x85,0x70,0x00,0x01] + popc %g1, %g2 + |

