1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/test/MC/Disassembler/Sparc/sparc-fp.txt
Tim Northover 31e1362588 TableGen: fix operand counting for aliases
TableGen has a fairly dubious heuristic to decide whether an alias should be
printed: does the alias have lest operands than the real instruction. This is
bad enough (particularly with no way to override it), but it should at least be
calculated consistently for both strings.

This patch implements that logic: first get the *correct* string for the
variant, in the same way as the Matcher, without guessing; then count the
number of whitespace chars.

There are basically 4 changes this brings about after the previous
commits; all of these appear to be good, so I have changed the tests:

+ ARM64: we print "neg X, Y" instead of "sub X, xzr, Y".
+ ARM64: we skip implicit "uxtx" and "uxtw" modifiers.
+ Sparc: we print "mov A, B" instead of "or %g0, A, B".
+ Sparc: we print "fcmpX A, B" instead of "fcmpX %fcc0, A, B"

llvm-svn: 208969
2014-05-16 09:42:04 +00:00

149 lines
2.3 KiB
Plaintext

# RUN: llvm-mc --disassemble %s -triple=sparc64-linux-gnu | FileCheck %s
# CHECK: fitos %f0, %f4
0x89 0xa0 0x18 0x80
# CHECK: fitod %f0, %f4
0x89 0xa0 0x19 0x00
# CHECK: fitoq %f0, %f4
0x89 0xa0 0x19 0x80
# CHECK: fstoi %f0, %f4
0x89 0xa0 0x1a 0x20
# CHECK: fdtoi %f0, %f4
0x89 0xa0 0x1a 0x40
# CHECK: fqtoi %f0, %f4
0x89 0xa0 0x1a 0x60
# CHECK: fstod %f0, %f4
0x89 0xa0 0x19 0x20
# CHECK: fstoq %f0, %f4
0x89 0xa0 0x19 0xa0
# CHECK: fdtos %f0, %f4
0x89 0xa0 0x18 0xc0
# CHECK: fdtoq %f0, %f4
0x89 0xa0 0x19 0xc0
# CHECK: fqtos %f0, %f4
0x89 0xa0 0x18 0xe0
# CHECK: fqtod %f0, %f4
0x89 0xa0 0x19 0x60
# CHECK: fmovs %f0, %f4
0x89 0xa0 0x00 0x20
# CHECK: fmovd %f0, %f4
0x89 0xa0 0x00 0x40
# CHECK: fmovq %f0, %f4
0x89 0xa0 0x00 0x60
# CHECK: fnegs %f0, %f4
0x89 0xa0 0x00 0xa0
# CHECK: fnegd %f0, %f4
0x89 0xa0 0x00 0xc0
# CHECK: fnegq %f0, %f4
0x89 0xa0 0x00 0xe0
# CHECK: fabss %f0, %f4
0x89 0xa0 0x01 0x20
# CHECK: fabsd %f0, %f4
0x89 0xa0 0x01 0x40
# CHECK: fabsq %f0, %f4
0x89 0xa0 0x01 0x60
# CHECK: fsqrts %f0, %f4
0x89 0xa0 0x05 0x20
# CHECK: fsqrtd %f0, %f4
0x89 0xa0 0x05 0x40
# CHECK: fsqrtq %f0, %f4
0x89 0xa0 0x05 0x60
# CHECK: fadds %f0, %f4, %f8
0x91 0xa0 0x08 0x24
# CHECK: faddd %f0, %f4, %f8
0x91 0xa0 0x08 0x44
# CHECK: faddq %f0, %f4, %f8
0x91 0xa0 0x08 0x64
# CHECK: faddd %f32, %f34, %f62
0xbf 0xa0 0x48 0x43
# CHECK: faddq %f32, %f36, %f60
0xbb 0xa0 0x48 0x65
# CHECK: fsubs %f0, %f4, %f8
0x91 0xa0 0x08 0xa4
# CHECK: fsubd %f0, %f4, %f8
0x91 0xa0 0x08 0xc4
# CHECK: fsubq %f0, %f4, %f8
0x91 0xa0 0x08 0xe4
# CHECK: fmuls %f0, %f4, %f8
0x91 0xa0 0x09 0x24
# CHECK: fmuld %f0, %f4, %f8
0x91 0xa0 0x09 0x44
# CHECK: fmulq %f0, %f4, %f8
0x91 0xa0 0x09 0x64
# CHECK: fsmuld %f0, %f4, %f8
0x91 0xa0 0x0d 0x24
# CHECK: fdmulq %f0, %f4, %f8
0x91 0xa0 0x0d 0xc4
# CHECK: fdivs %f0, %f4, %f8
0x91 0xa0 0x09 0xa4
# CHECK: fdivd %f0, %f4, %f8
0x91 0xa0 0x09 0xc4
# CHECK: fdivq %f0, %f4, %f8
0x91 0xa0 0x09 0xe4
# CHECK: fcmps %f0, %f4
0x81 0xa8 0x0a 0x24
# CHECK: fcmpd %f0, %f4
0x81 0xa8 0x0a 0x44
# CHECK: fcmpq %f0, %f4
0x81 0xa8 0x0a 0x64
# CHECK: fxtos %f0, %f4
0x89 0xa0 0x10 0x80
# CHECK: fxtod %f0, %f4
0x89 0xa0 0x11 0x00
# CHECK: fxtoq %f0, %f4
0x89 0xa0 0x11 0x80
# CHECK: fstox %f0, %f4
0x89 0xa0 0x10 0x20
# CHECK: fdtox %f0, %f4
0x89 0xa0 0x10 0x40
# CHECK: fqtox %f0, %f4
0x89 0xa0 0x10 0x60