001    
002    /*
003     * THIS FILE IS MACHINE_GENERATED. DO NOT EDIT.
004     * See InstructionFormats.template, InstructionFormatList.dat,
005     * OperatorList.dat, etc.
006     */
007    
008    package org.jikesrvm.compilers.opt.ir;
009    
010    import org.jikesrvm.Configuration;
011    import org.jikesrvm.compilers.opt.ir.operand.ia32.IA32ConditionOperand; //NOPMD
012    import org.jikesrvm.compilers.opt.ir.operand.*;
013    
014    /**
015     * The IfCmp2 InstructionFormat class.
016     *
017     * The header comment for {@link Instruction} contains
018     * an explanation of the role of InstructionFormats in the
019     * opt compiler's IR.
020     */
021    @SuppressWarnings("unused")  // Machine generated code is never 100% clean
022    public final class IfCmp2 extends InstructionFormat {
023      /**
024       * InstructionFormat identification method for IfCmp2.
025       * @param i an instruction
026       * @return <code>true</code> if the InstructionFormat of the argument
027       *         instruction is IfCmp2 or <code>false</code>
028       *         if it is not.
029       */
030      public static boolean conforms(Instruction i) {
031        return conforms(i.operator);
032      }
033      /**
034       * InstructionFormat identification method for IfCmp2.
035       * @param o an instruction
036       * @return <code>true</code> if the InstructionFormat of the argument
037       *         operator is IfCmp2 or <code>false</code>
038       *         if it is not.
039       */
040      public static boolean conforms(Operator o) {
041        return o.format == IfCmp2_format;
042      }
043    
044      /**
045       * Get the operand called GuardResult from the
046       * argument instruction. Note that the returned operand
047       * will still point to its containing instruction.
048       * @param i the instruction to fetch the operand from
049       * @return the operand called GuardResult
050       */
051      public static RegisterOperand getGuardResult(Instruction i) {
052        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
053        return (RegisterOperand) i.getOperand(0);
054      }
055      /**
056       * Get the operand called GuardResult from the argument
057       * instruction clearing its instruction pointer. The returned
058       * operand will not point to any containing instruction.
059       * @param i the instruction to fetch the operand from
060       * @return the operand called GuardResult
061       */
062      public static RegisterOperand getClearGuardResult(Instruction i) {
063        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
064        return (RegisterOperand) i.getClearOperand(0);
065      }
066      /**
067       * Set the operand called GuardResult in the argument
068       * instruction to the argument operand. The operand will
069       * now point to the argument instruction as its containing
070       * instruction.
071       * @param i the instruction in which to store the operand
072       * @param GuardResult the operand to store
073       */
074      public static void setGuardResult(Instruction i, RegisterOperand GuardResult) {
075        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
076        i.putOperand(0, GuardResult);
077      }
078      /**
079       * Return the index of the operand called GuardResult
080       * in the argument instruction.
081       * @param i the instruction to access.
082       * @return the index of the operand called GuardResult
083       *         in the argument instruction
084       */
085      public static int indexOfGuardResult(Instruction i) {
086        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
087        return 0;
088      }
089      /**
090       * Does the argument instruction have a non-null
091       * operand named GuardResult?
092       * @param i the instruction to access.
093       * @return <code>true</code> if the instruction has an non-null
094       *         operand named GuardResult or <code>false</code>
095       *         if it does not.
096       */
097      public static boolean hasGuardResult(Instruction i) {
098        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
099        return i.getOperand(0) != null;
100      }
101    
102      /**
103       * Get the operand called Val1 from the
104       * argument instruction. Note that the returned operand
105       * will still point to its containing instruction.
106       * @param i the instruction to fetch the operand from
107       * @return the operand called Val1
108       */
109      public static Operand getVal1(Instruction i) {
110        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
111        return (Operand) i.getOperand(1);
112      }
113      /**
114       * Get the operand called Val1 from the argument
115       * instruction clearing its instruction pointer. The returned
116       * operand will not point to any containing instruction.
117       * @param i the instruction to fetch the operand from
118       * @return the operand called Val1
119       */
120      public static Operand getClearVal1(Instruction i) {
121        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
122        return (Operand) i.getClearOperand(1);
123      }
124      /**
125       * Set the operand called Val1 in the argument
126       * instruction to the argument operand. The operand will
127       * now point to the argument instruction as its containing
128       * instruction.
129       * @param i the instruction in which to store the operand
130       * @param Val1 the operand to store
131       */
132      public static void setVal1(Instruction i, Operand Val1) {
133        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
134        i.putOperand(1, Val1);
135      }
136      /**
137       * Return the index of the operand called Val1
138       * in the argument instruction.
139       * @param i the instruction to access.
140       * @return the index of the operand called Val1
141       *         in the argument instruction
142       */
143      public static int indexOfVal1(Instruction i) {
144        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
145        return 1;
146      }
147      /**
148       * Does the argument instruction have a non-null
149       * operand named Val1?
150       * @param i the instruction to access.
151       * @return <code>true</code> if the instruction has an non-null
152       *         operand named Val1 or <code>false</code>
153       *         if it does not.
154       */
155      public static boolean hasVal1(Instruction i) {
156        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
157        return i.getOperand(1) != null;
158      }
159    
160      /**
161       * Get the operand called Val2 from the
162       * argument instruction. Note that the returned operand
163       * will still point to its containing instruction.
164       * @param i the instruction to fetch the operand from
165       * @return the operand called Val2
166       */
167      public static Operand getVal2(Instruction i) {
168        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
169        return (Operand) i.getOperand(2);
170      }
171      /**
172       * Get the operand called Val2 from the argument
173       * instruction clearing its instruction pointer. The returned
174       * operand will not point to any containing instruction.
175       * @param i the instruction to fetch the operand from
176       * @return the operand called Val2
177       */
178      public static Operand getClearVal2(Instruction i) {
179        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
180        return (Operand) i.getClearOperand(2);
181      }
182      /**
183       * Set the operand called Val2 in the argument
184       * instruction to the argument operand. The operand will
185       * now point to the argument instruction as its containing
186       * instruction.
187       * @param i the instruction in which to store the operand
188       * @param Val2 the operand to store
189       */
190      public static void setVal2(Instruction i, Operand Val2) {
191        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
192        i.putOperand(2, Val2);
193      }
194      /**
195       * Return the index of the operand called Val2
196       * in the argument instruction.
197       * @param i the instruction to access.
198       * @return the index of the operand called Val2
199       *         in the argument instruction
200       */
201      public static int indexOfVal2(Instruction i) {
202        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
203        return 2;
204      }
205      /**
206       * Does the argument instruction have a non-null
207       * operand named Val2?
208       * @param i the instruction to access.
209       * @return <code>true</code> if the instruction has an non-null
210       *         operand named Val2 or <code>false</code>
211       *         if it does not.
212       */
213      public static boolean hasVal2(Instruction i) {
214        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
215        return i.getOperand(2) != null;
216      }
217    
218      /**
219       * Get the operand called Cond1 from the
220       * argument instruction. Note that the returned operand
221       * will still point to its containing instruction.
222       * @param i the instruction to fetch the operand from
223       * @return the operand called Cond1
224       */
225      public static ConditionOperand getCond1(Instruction i) {
226        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
227        return (ConditionOperand) i.getOperand(3);
228      }
229      /**
230       * Get the operand called Cond1 from the argument
231       * instruction clearing its instruction pointer. The returned
232       * operand will not point to any containing instruction.
233       * @param i the instruction to fetch the operand from
234       * @return the operand called Cond1
235       */
236      public static ConditionOperand getClearCond1(Instruction i) {
237        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
238        return (ConditionOperand) i.getClearOperand(3);
239      }
240      /**
241       * Set the operand called Cond1 in the argument
242       * instruction to the argument operand. The operand will
243       * now point to the argument instruction as its containing
244       * instruction.
245       * @param i the instruction in which to store the operand
246       * @param Cond1 the operand to store
247       */
248      public static void setCond1(Instruction i, ConditionOperand Cond1) {
249        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
250        i.putOperand(3, Cond1);
251      }
252      /**
253       * Return the index of the operand called Cond1
254       * in the argument instruction.
255       * @param i the instruction to access.
256       * @return the index of the operand called Cond1
257       *         in the argument instruction
258       */
259      public static int indexOfCond1(Instruction i) {
260        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
261        return 3;
262      }
263      /**
264       * Does the argument instruction have a non-null
265       * operand named Cond1?
266       * @param i the instruction to access.
267       * @return <code>true</code> if the instruction has an non-null
268       *         operand named Cond1 or <code>false</code>
269       *         if it does not.
270       */
271      public static boolean hasCond1(Instruction i) {
272        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
273        return i.getOperand(3) != null;
274      }
275    
276      /**
277       * Get the operand called Target1 from the
278       * argument instruction. Note that the returned operand
279       * will still point to its containing instruction.
280       * @param i the instruction to fetch the operand from
281       * @return the operand called Target1
282       */
283      public static BranchOperand getTarget1(Instruction i) {
284        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
285        return (BranchOperand) i.getOperand(4);
286      }
287      /**
288       * Get the operand called Target1 from the argument
289       * instruction clearing its instruction pointer. The returned
290       * operand will not point to any containing instruction.
291       * @param i the instruction to fetch the operand from
292       * @return the operand called Target1
293       */
294      public static BranchOperand getClearTarget1(Instruction i) {
295        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
296        return (BranchOperand) i.getClearOperand(4);
297      }
298      /**
299       * Set the operand called Target1 in the argument
300       * instruction to the argument operand. The operand will
301       * now point to the argument instruction as its containing
302       * instruction.
303       * @param i the instruction in which to store the operand
304       * @param Target1 the operand to store
305       */
306      public static void setTarget1(Instruction i, BranchOperand Target1) {
307        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
308        i.putOperand(4, Target1);
309      }
310      /**
311       * Return the index of the operand called Target1
312       * in the argument instruction.
313       * @param i the instruction to access.
314       * @return the index of the operand called Target1
315       *         in the argument instruction
316       */
317      public static int indexOfTarget1(Instruction i) {
318        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
319        return 4;
320      }
321      /**
322       * Does the argument instruction have a non-null
323       * operand named Target1?
324       * @param i the instruction to access.
325       * @return <code>true</code> if the instruction has an non-null
326       *         operand named Target1 or <code>false</code>
327       *         if it does not.
328       */
329      public static boolean hasTarget1(Instruction i) {
330        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
331        return i.getOperand(4) != null;
332      }
333    
334      /**
335       * Get the operand called BranchProfile1 from the
336       * argument instruction. Note that the returned operand
337       * will still point to its containing instruction.
338       * @param i the instruction to fetch the operand from
339       * @return the operand called BranchProfile1
340       */
341      public static BranchProfileOperand getBranchProfile1(Instruction i) {
342        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
343        return (BranchProfileOperand) i.getOperand(5);
344      }
345      /**
346       * Get the operand called BranchProfile1 from the argument
347       * instruction clearing its instruction pointer. The returned
348       * operand will not point to any containing instruction.
349       * @param i the instruction to fetch the operand from
350       * @return the operand called BranchProfile1
351       */
352      public static BranchProfileOperand getClearBranchProfile1(Instruction i) {
353        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
354        return (BranchProfileOperand) i.getClearOperand(5);
355      }
356      /**
357       * Set the operand called BranchProfile1 in the argument
358       * instruction to the argument operand. The operand will
359       * now point to the argument instruction as its containing
360       * instruction.
361       * @param i the instruction in which to store the operand
362       * @param BranchProfile1 the operand to store
363       */
364      public static void setBranchProfile1(Instruction i, BranchProfileOperand BranchProfile1) {
365        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
366        i.putOperand(5, BranchProfile1);
367      }
368      /**
369       * Return the index of the operand called BranchProfile1
370       * in the argument instruction.
371       * @param i the instruction to access.
372       * @return the index of the operand called BranchProfile1
373       *         in the argument instruction
374       */
375      public static int indexOfBranchProfile1(Instruction i) {
376        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
377        return 5;
378      }
379      /**
380       * Does the argument instruction have a non-null
381       * operand named BranchProfile1?
382       * @param i the instruction to access.
383       * @return <code>true</code> if the instruction has an non-null
384       *         operand named BranchProfile1 or <code>false</code>
385       *         if it does not.
386       */
387      public static boolean hasBranchProfile1(Instruction i) {
388        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
389        return i.getOperand(5) != null;
390      }
391    
392      /**
393       * Get the operand called Cond2 from the
394       * argument instruction. Note that the returned operand
395       * will still point to its containing instruction.
396       * @param i the instruction to fetch the operand from
397       * @return the operand called Cond2
398       */
399      public static ConditionOperand getCond2(Instruction i) {
400        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
401        return (ConditionOperand) i.getOperand(6);
402      }
403      /**
404       * Get the operand called Cond2 from the argument
405       * instruction clearing its instruction pointer. The returned
406       * operand will not point to any containing instruction.
407       * @param i the instruction to fetch the operand from
408       * @return the operand called Cond2
409       */
410      public static ConditionOperand getClearCond2(Instruction i) {
411        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
412        return (ConditionOperand) i.getClearOperand(6);
413      }
414      /**
415       * Set the operand called Cond2 in the argument
416       * instruction to the argument operand. The operand will
417       * now point to the argument instruction as its containing
418       * instruction.
419       * @param i the instruction in which to store the operand
420       * @param Cond2 the operand to store
421       */
422      public static void setCond2(Instruction i, ConditionOperand Cond2) {
423        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
424        i.putOperand(6, Cond2);
425      }
426      /**
427       * Return the index of the operand called Cond2
428       * in the argument instruction.
429       * @param i the instruction to access.
430       * @return the index of the operand called Cond2
431       *         in the argument instruction
432       */
433      public static int indexOfCond2(Instruction i) {
434        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
435        return 6;
436      }
437      /**
438       * Does the argument instruction have a non-null
439       * operand named Cond2?
440       * @param i the instruction to access.
441       * @return <code>true</code> if the instruction has an non-null
442       *         operand named Cond2 or <code>false</code>
443       *         if it does not.
444       */
445      public static boolean hasCond2(Instruction i) {
446        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
447        return i.getOperand(6) != null;
448      }
449    
450      /**
451       * Get the operand called Target2 from the
452       * argument instruction. Note that the returned operand
453       * will still point to its containing instruction.
454       * @param i the instruction to fetch the operand from
455       * @return the operand called Target2
456       */
457      public static BranchOperand getTarget2(Instruction i) {
458        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
459        return (BranchOperand) i.getOperand(7);
460      }
461      /**
462       * Get the operand called Target2 from the argument
463       * instruction clearing its instruction pointer. The returned
464       * operand will not point to any containing instruction.
465       * @param i the instruction to fetch the operand from
466       * @return the operand called Target2
467       */
468      public static BranchOperand getClearTarget2(Instruction i) {
469        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
470        return (BranchOperand) i.getClearOperand(7);
471      }
472      /**
473       * Set the operand called Target2 in the argument
474       * instruction to the argument operand. The operand will
475       * now point to the argument instruction as its containing
476       * instruction.
477       * @param i the instruction in which to store the operand
478       * @param Target2 the operand to store
479       */
480      public static void setTarget2(Instruction i, BranchOperand Target2) {
481        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
482        i.putOperand(7, Target2);
483      }
484      /**
485       * Return the index of the operand called Target2
486       * in the argument instruction.
487       * @param i the instruction to access.
488       * @return the index of the operand called Target2
489       *         in the argument instruction
490       */
491      public static int indexOfTarget2(Instruction i) {
492        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
493        return 7;
494      }
495      /**
496       * Does the argument instruction have a non-null
497       * operand named Target2?
498       * @param i the instruction to access.
499       * @return <code>true</code> if the instruction has an non-null
500       *         operand named Target2 or <code>false</code>
501       *         if it does not.
502       */
503      public static boolean hasTarget2(Instruction i) {
504        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
505        return i.getOperand(7) != null;
506      }
507    
508      /**
509       * Get the operand called BranchProfile2 from the
510       * argument instruction. Note that the returned operand
511       * will still point to its containing instruction.
512       * @param i the instruction to fetch the operand from
513       * @return the operand called BranchProfile2
514       */
515      public static BranchProfileOperand getBranchProfile2(Instruction i) {
516        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
517        return (BranchProfileOperand) i.getOperand(8);
518      }
519      /**
520       * Get the operand called BranchProfile2 from the argument
521       * instruction clearing its instruction pointer. The returned
522       * operand will not point to any containing instruction.
523       * @param i the instruction to fetch the operand from
524       * @return the operand called BranchProfile2
525       */
526      public static BranchProfileOperand getClearBranchProfile2(Instruction i) {
527        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
528        return (BranchProfileOperand) i.getClearOperand(8);
529      }
530      /**
531       * Set the operand called BranchProfile2 in the argument
532       * instruction to the argument operand. The operand will
533       * now point to the argument instruction as its containing
534       * instruction.
535       * @param i the instruction in which to store the operand
536       * @param BranchProfile2 the operand to store
537       */
538      public static void setBranchProfile2(Instruction i, BranchProfileOperand BranchProfile2) {
539        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
540        i.putOperand(8, BranchProfile2);
541      }
542      /**
543       * Return the index of the operand called BranchProfile2
544       * in the argument instruction.
545       * @param i the instruction to access.
546       * @return the index of the operand called BranchProfile2
547       *         in the argument instruction
548       */
549      public static int indexOfBranchProfile2(Instruction i) {
550        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
551        return 8;
552      }
553      /**
554       * Does the argument instruction have a non-null
555       * operand named BranchProfile2?
556       * @param i the instruction to access.
557       * @return <code>true</code> if the instruction has an non-null
558       *         operand named BranchProfile2 or <code>false</code>
559       *         if it does not.
560       */
561      public static boolean hasBranchProfile2(Instruction i) {
562        if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "IfCmp2");
563        return i.getOperand(8) != null;
564      }
565    
566    
567      /**
568       * Create an instruction of the IfCmp2 instruction format.
569       * @param o the instruction's operator
570       * @param GuardResult the instruction's GuardResult operand
571       * @param Val1 the instruction's Val1 operand
572       * @param Val2 the instruction's Val2 operand
573       * @param Cond1 the instruction's Cond1 operand
574       * @param Target1 the instruction's Target1 operand
575       * @param BranchProfile1 the instruction's BranchProfile1 operand
576       * @param Cond2 the instruction's Cond2 operand
577       * @param Target2 the instruction's Target2 operand
578       * @param BranchProfile2 the instruction's BranchProfile2 operand
579       * @return the newly created IfCmp2 instruction
580       */
581      public static Instruction create(Operator o
582                       , RegisterOperand GuardResult
583                       , Operand Val1
584                       , Operand Val2
585                       , ConditionOperand Cond1
586                       , BranchOperand Target1
587                       , BranchProfileOperand BranchProfile1
588                       , ConditionOperand Cond2
589                       , BranchOperand Target2
590                       , BranchProfileOperand BranchProfile2
591                    )
592      {
593        if (Configuration.ExtremeAssertions && !conforms(o)) fail(o, "IfCmp2");
594        Instruction i = new Instruction(o, 9);
595        i.putOperand(0, GuardResult);
596        i.putOperand(1, Val1);
597        i.putOperand(2, Val2);
598        i.putOperand(3, Cond1);
599        i.putOperand(4, Target1);
600        i.putOperand(5, BranchProfile1);
601        i.putOperand(6, Cond2);
602        i.putOperand(7, Target2);
603        i.putOperand(8, BranchProfile2);
604        return i;
605      }
606    
607      /**
608       * Mutate the argument instruction into an instruction of the
609       * IfCmp2 instruction format having the specified
610       * operator and operands.
611       * @param i the instruction to mutate
612       * @param o the instruction's operator
613       * @param GuardResult the instruction's GuardResult operand
614       * @param Val1 the instruction's Val1 operand
615       * @param Val2 the instruction's Val2 operand
616       * @param Cond1 the instruction's Cond1 operand
617       * @param Target1 the instruction's Target1 operand
618       * @param BranchProfile1 the instruction's BranchProfile1 operand
619       * @param Cond2 the instruction's Cond2 operand
620       * @param Target2 the instruction's Target2 operand
621       * @param BranchProfile2 the instruction's BranchProfile2 operand
622       * @return the mutated instruction
623       */
624      public static Instruction mutate(Instruction i, Operator o
625                       , RegisterOperand GuardResult
626                       , Operand Val1
627                       , Operand Val2
628                       , ConditionOperand Cond1
629                       , BranchOperand Target1
630                       , BranchProfileOperand BranchProfile1
631                       , ConditionOperand Cond2
632                       , BranchOperand Target2
633                       , BranchProfileOperand BranchProfile2
634                    )
635      {
636        if (Configuration.ExtremeAssertions && !conforms(o)) fail(o, "IfCmp2");
637        i.resizeNumberOfOperands(9);
638    
639        i.operator = o;
640        i.putOperand(0, GuardResult);
641        i.putOperand(1, Val1);
642        i.putOperand(2, Val2);
643        i.putOperand(3, Cond1);
644        i.putOperand(4, Target1);
645        i.putOperand(5, BranchProfile1);
646        i.putOperand(6, Cond2);
647        i.putOperand(7, Target2);
648        i.putOperand(8, BranchProfile2);
649        return i;
650      }
651    }
652