llvm.org GIT mirror llvm / bcdb993
Partially revert the changes I made in r233473 to keep the code concise. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233474 91177308-0d34-0410-b5e6-96231b3b80d8 Akira Hatanaka 5 years ago
1 changed file(s) with 47 addition(s) and 137 deletion(s). Raw diff Collapse all Expand all
7272 raw_ostream &O) {
7373 int64_t Imm = MI->getOperand(Op).getImm();
7474 switch (Imm) {
75 default:
76 llvm_unreachable("Invalid ssecc/avxcc argument!");
77 case 0:
78 O << "eq";
79 break;
80 case 1:
81 O << "lt";
82 break;
83 case 2:
84 O << "le";
85 break;
86 case 3:
87 O << "unord";
88 break;
89 case 4:
90 O << "neq";
91 break;
92 case 5:
93 O << "nlt";
94 break;
95 case 6:
96 O << "nle";
97 break;
98 case 7:
99 O << "ord";
100 break;
101 case 8:
102 O << "eq_uq";
103 break;
104 case 9:
105 O << "nge";
106 break;
107 case 0xa:
108 O << "ngt";
109 break;
110 case 0xb:
111 O << "false";
112 break;
113 case 0xc:
114 O << "neq_oq";
115 break;
116 case 0xd:
117 O << "ge";
118 break;
119 case 0xe:
120 O << "gt";
121 break;
122 case 0xf:
123 O << "true";
124 break;
125 case 0x10:
126 O << "eq_os";
127 break;
128 case 0x11:
129 O << "lt_oq";
130 break;
131 case 0x12:
132 O << "le_oq";
133 break;
134 case 0x13:
135 O << "unord_s";
136 break;
137 case 0x14:
138 O << "neq_us";
139 break;
140 case 0x15:
141 O << "nlt_uq";
142 break;
143 case 0x16:
144 O << "nle_uq";
145 break;
146 case 0x17:
147 O << "ord_s";
148 break;
149 case 0x18:
150 O << "eq_us";
151 break;
152 case 0x19:
153 O << "nge_uq";
154 break;
155 case 0x1a:
156 O << "ngt_uq";
157 break;
158 case 0x1b:
159 O << "false_os";
160 break;
161 case 0x1c:
162 O << "neq_os";
163 break;
164 case 0x1d:
165 O << "ge_oq";
166 break;
167 case 0x1e:
168 O << "gt_oq";
169 break;
170 case 0x1f:
171 O << "true_us";
172 break;
75 default: llvm_unreachable("Invalid ssecc/avxcc argument!");
76 case 0: O << "eq"; break;
77 case 1: O << "lt"; break;
78 case 2: O << "le"; break;
79 case 3: O << "unord"; break;
80 case 4: O << "neq"; break;
81 case 5: O << "nlt"; break;
82 case 6: O << "nle"; break;
83 case 7: O << "ord"; break;
84 case 8: O << "eq_uq"; break;
85 case 9: O << "nge"; break;
86 case 0xa: O << "ngt"; break;
87 case 0xb: O << "false"; break;
88 case 0xc: O << "neq_oq"; break;
89 case 0xd: O << "ge"; break;
90 case 0xe: O << "gt"; break;
91 case 0xf: O << "true"; break;
92 case 0x10: O << "eq_os"; break;
93 case 0x11: O << "lt_oq"; break;
94 case 0x12: O << "le_oq"; break;
95 case 0x13: O << "unord_s"; break;
96 case 0x14: O << "neq_us"; break;
97 case 0x15: O << "nlt_uq"; break;
98 case 0x16: O << "nle_uq"; break;
99 case 0x17: O << "ord_s"; break;
100 case 0x18: O << "eq_us"; break;
101 case 0x19: O << "nge_uq"; break;
102 case 0x1a: O << "ngt_uq"; break;
103 case 0x1b: O << "false_os"; break;
104 case 0x1c: O << "neq_os"; break;
105 case 0x1d: O << "ge_oq"; break;
106 case 0x1e: O << "gt_oq"; break;
107 case 0x1f: O << "true_us"; break;
173108 }
174109 }
175110
177112 raw_ostream &O) {
178113 int64_t Imm = MI->getOperand(Op).getImm();
179114 switch (Imm) {
180 default:
181 llvm_unreachable("Invalid xopcc argument!");
182 case 0:
183 O << "lt";
184 break;
185 case 1:
186 O << "le";
187 break;
188 case 2:
189 O << "gt";
190 break;
191 case 3:
192 O << "ge";
193 break;
194 case 4:
195 O << "eq";
196 break;
197 case 5:
198 O << "neq";
199 break;
200 case 6:
201 O << "false";
202 break;
203 case 7:
204 O << "true";
205 break;
115 default: llvm_unreachable("Invalid xopcc argument!");
116 case 0: O << "lt"; break;
117 case 1: O << "le"; break;
118 case 2: O << "gt"; break;
119 case 3: O << "ge"; break;
120 case 4: O << "eq"; break;
121 case 5: O << "neq"; break;
122 case 6: O << "false"; break;
123 case 7: O << "true"; break;
206124 }
207125 }
208126
209127 void X86ATTInstPrinter::printRoundingControl(const MCInst *MI, unsigned Op,
210 raw_ostream &O) {
128 raw_ostream &O) {
211129 int64_t Imm = MI->getOperand(Op).getImm() & 0x3;
212130 switch (Imm) {
213 case 0:
214 O << "{rn-sae}";
215 break;
216 case 1:
217 O << "{rd-sae}";
218 break;
219 case 2:
220 O << "{ru-sae}";
221 break;
222 case 3:
223 O << "{rz-sae}";
224 break;
131 case 0: O << "{rn-sae}"; break;
132 case 1: O << "{rd-sae}"; break;
133 case 2: O << "{ru-sae}"; break;
134 case 3: O << "{rz-sae}"; break;
225135 }
226136 }
227137 /// printPCRelImm - This is used to print an immediate value that ends up