1 ! RUN
: llvm-mc
%s
-arch
=sparcv9
-show-encoding | FileCheck
%s
3 ! CHECK
: fitos
%f0, %f4 ! encoding
: [0x89,0xa0,0x18,0x80]
4 ! CHECK
: fitod
%f0, %f4 ! encoding
: [0x89,0xa0,0x19,0x00]
5 ! CHECK
: fitoq
%f0, %f4 ! encoding
: [0x89,0xa0,0x19,0x80]
10 ! CHECK
: fstoi
%f0, %f4 ! encoding
: [0x89,0xa0,0x1a,0x20]
11 ! CHECK
: fdtoi
%f0, %f4 ! encoding
: [0x89,0xa0,0x1a,0x40]
12 ! CHECK
: fqtoi
%f0, %f4 ! encoding
: [0x89,0xa0,0x1a,0x60]
17 ! CHECK
: fstod
%f0, %f4 ! encoding
: [0x89,0xa0,0x19,0x20]
18 ! CHECK
: fstoq
%f0, %f4 ! encoding
: [0x89,0xa0,0x19,0xa0]
22 ! CHECK
: fdtos
%f0, %f4 ! encoding
: [0x89,0xa0,0x18,0xc0]
23 ! CHECK
: fdtoq
%f0, %f4 ! encoding
: [0x89,0xa0,0x19,0xc0]
27 ! CHECK
: fqtos
%f0, %f4 ! encoding
: [0x89,0xa0,0x18,0xe0]
28 ! CHECK
: fqtod
%f0, %f4 ! encoding
: [0x89,0xa0,0x19,0x60]
32 ! CHECK
: fmovs
%f0, %f4 ! encoding
: [0x89,0xa0,0x00,0x20]
33 ! CHECK
: fmovd
%f0, %f4 ! encoding
: [0x89,0xa0,0x00,0x40]
34 ! CHECK
: fmovq
%f0, %f4 ! encoding
: [0x89,0xa0,0x00,0x60]
39 ! CHECK
: fnegs
%f0, %f4 ! encoding
: [0x89,0xa0,0x00,0xa0]
40 ! CHECK
: fnegd
%f0, %f4 ! encoding
: [0x89,0xa0,0x00,0xc0]
41 ! CHECK
: fnegq
%f0, %f4 ! encoding
: [0x89,0xa0,0x00,0xe0]
46 ! CHECK
: fabss
%f0, %f4 ! encoding
: [0x89,0xa0,0x01,0x20]
47 ! CHECK
: fabsd
%f0, %f4 ! encoding
: [0x89,0xa0,0x01,0x40]
48 ! CHECK
: fabsq
%f0, %f4 ! encoding
: [0x89,0xa0,0x01,0x60]
53 ! CHECK
: fsqrts %f0, %f4 ! encoding
: [0x89,0xa0,0x05,0x20]
54 ! CHECK
: fsqrtd
%f0, %f4 ! encoding
: [0x89,0xa0,0x05,0x40]
55 ! CHECK
: fsqrtq
%f0, %f4 ! encoding
: [0x89,0xa0,0x05,0x60]
60 ! CHECK
: fadds %f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x08,0x24]
61 ! CHECK
: faddd
%f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x08,0x44]
62 ! CHECK
: faddq
%f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x08,0x64]
67 ! make sure we can handle V9 double registers
and their aliased quad registers.
68 ! CHECK
: faddd
%f32
, %f34
, %f62
! encoding
: [0xbf,0xa0,0x48,0x43]
69 ! CHECK
: faddq
%f32
, %f36
, %f60
! encoding
: [0xbb,0xa0,0x48,0x65]
70 faddd
%f32
, %f34
, %f62
71 faddq
%f32
, %f36
, %f60
73 ! CHECK
: fsubs %f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x08,0xa4]
74 ! CHECK
: fsubd
%f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x08,0xc4]
75 ! CHECK
: fsubq
%f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x08,0xe4]
80 ! CHECK
: fmuls %f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x09,0x24]
81 ! CHECK
: fmuld
%f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x09,0x44]
82 ! CHECK
: fmulq
%f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x09,0x64]
87 ! CHECK
: fsmuld
%f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x0d,0x24]
88 ! CHECK
: fdmulq
%f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x0d,0xc4]
92 ! CHECK
: fdivs %f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x09,0xa4]
93 ! CHECK
: fdivd
%f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x09,0xc4]
94 ! CHECK
: fdivq
%f0, %f4, %f8 ! encoding
: [0x91,0xa0,0x09,0xe4]
99 ! CHECK
: fcmps
%f0, %f4 ! encoding
: [0x81,0xa8,0x0a,0x24]
100 ! CHECK
: fcmpd
%f0, %f4 ! encoding
: [0x81,0xa8,0x0a,0x44]
101 ! CHECK
: fcmpq
%f0, %f4 ! encoding
: [0x81,0xa8,0x0a,0x64]
106 ! CHECK
: fcmpes
%f0, %f4 ! encoding
: [0x81,0xa8,0x0a,0xa4]
107 ! CHECK
: fcmped
%f0, %f4 ! encoding
: [0x81,0xa8,0x0a,0xc4]
108 ! CHECK
: fcmpeq
%f0, %f4 ! encoding
: [0x81,0xa8,0x0a,0xe4]
113 ! CHECK
: fcmps
%fcc2
, %f0, %f4 ! encoding
: [0x85,0xa8,0x0a,0x24]
114 ! CHECK
: fcmpd
%fcc2
, %f0, %f4 ! encoding
: [0x85,0xa8,0x0a,0x44]
115 ! CHECK
: fcmpq
%fcc2
, %f0, %f4 ! encoding
: [0x85,0xa8,0x0a,0x64]
116 fcmps
%fcc2
, %f0, %f4
117 fcmpd
%fcc2
, %f0, %f4
118 fcmpq
%fcc2
, %f0, %f4
120 ! CHECK
: fcmpes
%fcc2
, %f0, %f4 ! encoding
: [0x85,0xa8,0x0a,0xa4]
121 ! CHECK
: fcmped
%fcc2
, %f0, %f4 ! encoding
: [0x85,0xa8,0x0a,0xc4]
122 ! CHECK
: fcmpeq
%fcc2
, %f0, %f4 ! encoding
: [0x85,0xa8,0x0a,0xe4]
123 fcmpes
%fcc2
, %f0, %f4
124 fcmped
%fcc2
, %f0, %f4
125 fcmpeq
%fcc2
, %f0, %f4
127 ! CHECK
: fxtos
%f0, %f4 ! encoding
: [0x89,0xa0,0x10,0x80]
128 ! CHECK
: fxtod
%f0, %f4 ! encoding
: [0x89,0xa0,0x11,0x00]
129 ! CHECK
: fxtoq
%f0, %f4 ! encoding
: [0x89,0xa0,0x11,0x80]
134 ! CHECK
: fstox
%f0, %f4 ! encoding
: [0x89,0xa0,0x10,0x20]
135 ! CHECK
: fdtox
%f0, %f4 ! encoding
: [0x89,0xa0,0x10,0x40]
136 ! CHECK
: fqtox
%f0, %f4 ! encoding
: [0x89,0xa0,0x10,0x60]
141 ! CHECK
: ld [%l0
], %f29 ! encoding
: [0xfb,0x04,0x00,0x00]
142 ! CHECK
: ldd
[%l0
], %f48
! encoding
: [0xe3,0x1c,0x00,0x00]
146 ! CHECK
: st %f29, [%l0
] ! encoding
: [0xfb,0x24,0x00,0x00]
147 ! CHECK
: std %f48
, [%l0
] ! encoding
: [0xe3,0x3c,0x00,0x00]
151 ! CHECK
: std %fq
, [%o4
] ! encoding
: [0xc1,0x33,0x00,0x00]
152 ! CHECK
: std %fq
, [%l1+
62] ! encoding
: [0xc1,0x34,0x60,0x3e]
153 ! CHECK
: std %fq
, [%i3+
%l7
] ! encoding
: [0xc1,0x36,0xc0,0x17]