diff options
author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2014-03-02 03:39:39 +0000 |
---|---|---|
committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2014-03-02 03:39:39 +0000 |
commit | afad335cae8d1c811e2d4a9de843a36d36b4e8c5 (patch) | |
tree | 3635fcf8152acb693c12bfadec4981b48f9ac5d2 /test | |
parent | 80949c599fb8b2c5d14c517d2ef94ad974989a37 (diff) | |
download | llvm-afad335cae8d1c811e2d4a9de843a36d36b4e8c5.tar.gz llvm-afad335cae8d1c811e2d4a9de843a36d36b4e8c5.tar.bz2 llvm-afad335cae8d1c811e2d4a9de843a36d36b4e8c5.tar.xz |
[Sparc] Add support for parsing fcmp with %fcc registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/Disassembler/Sparc/sparc-fp.txt | 6 | ||||
-rw-r--r-- | test/MC/Sparc/sparc-fp-instructions.s | 13 | ||||
-rw-r--r-- | test/MC/Sparc/sparcv8-instructions.s | 8 |
3 files changed, 21 insertions, 6 deletions
diff --git a/test/MC/Disassembler/Sparc/sparc-fp.txt b/test/MC/Disassembler/Sparc/sparc-fp.txt index b8a5017383..b279da86a5 100644 --- a/test/MC/Disassembler/Sparc/sparc-fp.txt +++ b/test/MC/Disassembler/Sparc/sparc-fp.txt @@ -120,13 +120,13 @@ # CHECK: fdivq %f0, %f4, %f8 0x91 0xa0 0x09 0xe4 -# CHECK: fcmps %f0, %f4 +# CHECK: fcmps %fcc0, %f0, %f4 0x81 0xa8 0x0a 0x24 -# CHECK: fcmpd %f0, %f4 +# CHECK: fcmpd %fcc0, %f0, %f4 0x81 0xa8 0x0a 0x44 -# CHECK: fcmpq %f0, %f4 +# CHECK: fcmpq %fcc0, %f0, %f4 0x81 0xa8 0x0a 0x64 # CHECK: fxtos %f0, %f4 diff --git a/test/MC/Sparc/sparc-fp-instructions.s b/test/MC/Sparc/sparc-fp-instructions.s index 7435a0a5e8..88a055d7fc 100644 --- a/test/MC/Sparc/sparc-fp-instructions.s +++ b/test/MC/Sparc/sparc-fp-instructions.s @@ -96,13 +96,20 @@ fdivd %f0, %f4, %f8 fdivq %f0, %f4, %f8 - ! CHECK: fcmps %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0x24] - ! CHECK: fcmpd %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0x44] - ! CHECK: fcmpq %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0x64] + ! CHECK: fcmps %fcc0, %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0x24] + ! CHECK: fcmpd %fcc0, %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0x44] + ! CHECK: fcmpq %fcc0, %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0x64] fcmps %f0, %f4 fcmpd %f0, %f4 fcmpq %f0, %f4 + ! CHECK: fcmps %fcc2, %f0, %f4 ! encoding: [0x85,0xa8,0x0a,0x24] + ! CHECK: fcmpd %fcc2, %f0, %f4 ! encoding: [0x85,0xa8,0x0a,0x44] + ! CHECK: fcmpq %fcc2, %f0, %f4 ! encoding: [0x85,0xa8,0x0a,0x64] + fcmps %fcc2, %f0, %f4 + fcmpd %fcc2, %f0, %f4 + fcmpq %fcc2, %f0, %f4 + ! CHECK: fxtos %f0, %f4 ! encoding: [0x89,0xa0,0x10,0x80] ! CHECK: fxtod %f0, %f4 ! encoding: [0x89,0xa0,0x11,0x00] ! CHECK: fxtoq %f0, %f4 ! encoding: [0x89,0xa0,0x11,0x80] diff --git a/test/MC/Sparc/sparcv8-instructions.s b/test/MC/Sparc/sparcv8-instructions.s new file mode 100644 index 0000000000..27b32976f3 --- /dev/null +++ b/test/MC/Sparc/sparcv8-instructions.s @@ -0,0 +1,8 @@ +! RUN: llvm-mc %s -arch=sparc -show-encoding | FileCheck %s + + ! CHECK: fcmps %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0x24] + ! CHECK: fcmpd %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0x44] + ! CHECK: fcmpq %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0x64] + fcmps %f0, %f4 + fcmpd %f0, %f4 + fcmpq %f0, %f4 |