diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/MC/Disassembler/Sparc/sparc-special-registers.txt | 12 | ||||
| -rw-r--r-- | llvm/test/MC/Sparc/sparc-fp-instructions.s | 30 | ||||
| -rw-r--r-- | llvm/test/MC/Sparc/sparc-special-registers.s | 3 |
3 files changed, 34 insertions, 11 deletions
diff --git a/llvm/test/MC/Disassembler/Sparc/sparc-special-registers.txt b/llvm/test/MC/Disassembler/Sparc/sparc-special-registers.txt index f653dbda605..b34816dfac6 100644 --- a/llvm/test/MC/Disassembler/Sparc/sparc-special-registers.txt +++ b/llvm/test/MC/Disassembler/Sparc/sparc-special-registers.txt @@ -32,3 +32,15 @@ # CHECK: wr %i0, 5, %tbr 0x81 0x9e 0x20 0x05 + +# CHECK: st %fsr, [%i5] +0xc1 0x2f 0x40 0x00 + +# CHECK: st %csr, [%i5] +0xc1 0xaf 0x40 0x00 + +# CHECK: std %cq, [%o3+-93] +0xc1 0xb2 0xff 0xa3 + +# CHECK: std %fq, [%i5+%l1] +0xc1 0x37 0x40 0x11 diff --git a/llvm/test/MC/Sparc/sparc-fp-instructions.s b/llvm/test/MC/Sparc/sparc-fp-instructions.s index 64f1538cb91..ae5ef37bf22 100644 --- a/llvm/test/MC/Sparc/sparc-fp-instructions.s +++ b/llvm/test/MC/Sparc/sparc-fp-instructions.s @@ -65,8 +65,8 @@ faddq %f0, %f4, %f8 ! make sure we can handle V9 double registers and their aliased quad registers. - ! CHECK: faddd %f32, %f34, %f62 ! encoding: [0xbf,0xa0,0x48,0x43] - ! CHECK: faddq %f32, %f36, %f60 ! encoding: [0xbb,0xa0,0x48,0x65] + ! CHECK: faddd %f32, %f34, %f62 ! encoding: [0xbf,0xa0,0x48,0x43] + ! CHECK: faddq %f32, %f36, %f60 ! encoding: [0xbb,0xa0,0x48,0x65] faddd %f32, %f34, %f62 faddq %f32, %f36, %f60 @@ -103,23 +103,23 @@ fcmpd %f0, %f4 fcmpq %f0, %f4 - ! CHECK: fcmpes %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0xa4] - ! CHECK: fcmped %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0xc4] - ! CHECK: fcmpeq %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0xe4] + ! CHECK: fcmpes %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0xa4] + ! CHECK: fcmped %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0xc4] + ! CHECK: fcmpeq %f0, %f4 ! encoding: [0x81,0xa8,0x0a,0xe4] fcmpes %f0, %f4 fcmped %f0, %f4 fcmpeq %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] + ! 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: fcmpes %fcc2, %f0, %f4 ! encoding: [0x85,0xa8,0x0a,0xa4] - ! CHECK: fcmped %fcc2, %f0, %f4 ! encoding: [0x85,0xa8,0x0a,0xc4] - ! CHECK: fcmpeq %fcc2, %f0, %f4 ! encoding: [0x85,0xa8,0x0a,0xe4] + ! CHECK: fcmpes %fcc2, %f0, %f4 ! encoding: [0x85,0xa8,0x0a,0xa4] + ! CHECK: fcmped %fcc2, %f0, %f4 ! encoding: [0x85,0xa8,0x0a,0xc4] + ! CHECK: fcmpeq %fcc2, %f0, %f4 ! encoding: [0x85,0xa8,0x0a,0xe4] fcmpes %fcc2, %f0, %f4 fcmped %fcc2, %f0, %f4 fcmpeq %fcc2, %f0, %f4 @@ -147,3 +147,11 @@ ! CHECK: std %f48, [%l0] ! encoding: [0xe3,0x3c,0x00,0x00] st %f29, [%l0] std %f48, [%l0] + + ! CHECK: std %fq, [%o4] ! encoding: [0xc1,0x33,0x00,0x00] + ! CHECK: std %fq, [%l1+62] ! encoding: [0xc1,0x34,0x60,0x3e] + ! CHECK: std %fq, [%i3+%l7] ! encoding: [0xc1,0x36,0xc0,0x17] + std %fq, [%o4] + std %fq, [%l1+62] + std %fq, [%i3+%l7] +
\ No newline at end of file diff --git a/llvm/test/MC/Sparc/sparc-special-registers.s b/llvm/test/MC/Sparc/sparc-special-registers.s index 235c4cfedcf..7667abea014 100644 --- a/llvm/test/MC/Sparc/sparc-special-registers.s +++ b/llvm/test/MC/Sparc/sparc-special-registers.s @@ -51,3 +51,6 @@ ! CHECK: st %fsr, [%g2+%i5] ! encoding: [0xc1,0x28,0x80,0x1d] st %fsr,[%g2 + %i5] + + ! CHECK: std %fq, [%g6+%i2] ! encoding: [0xc1,0x31,0x80,0x1a] + std %fq, [%g6 + %i2] |

