Lines Matching refs:arith
8 // CHECK: [[C:%.+]] = arith.constant 6.{{0*}}e+00 : f32
11 %0 = arith.constant 4.5 : f32
12 %1 = arith.constant 1.5 : f32
14 %2 = arith.addf %0, %1 : f32
27 %0 = arith.constant 4.5 : f32
28 %1 = arith.constant 1.5 : f32
30 // CHECK-NEXT: [[C:%.+]] = arith.constant 6.{{0*}}e+00 : f32
31 %2 = arith.addf %0, %1 : f32
41 %0 = arith.constant dense<4.5> : tensor<4xf32>
42 %1 = arith.constant dense<1.5> : tensor<4xf32>
44 // CHECK-NEXT: [[C:%.+]] = arith.constant dense<6.{{0*}}e+00> : tensor<4xf32>
45 %2 = arith.addf %0, %1 : tensor<4xf32>
55 %0 = arith.constant dense<[1.5, 2.5, 3.5, 4.5]> : tensor<4xf32>
56 %1 = arith.constant dense<[1.5, 2.5, 3.5, 4.5]> : tensor<4xf32>
58 …// CHECK-NEXT: [[C:%.+]] = arith.constant dense<[3.{{0*}}e+00, 5.{{0*}}e+00, 7.{{0*}}e+00, 9.{{0*}…
59 %2 = arith.addf %0, %1 : tensor<4xf32>
69 %0 = arith.constant dense<[1.5, 2.5, 3.5, 4.5]> : tensor<4xf32>
70 %1 = arith.constant dense<1.5> : tensor<4xf32>
72 …// CHECK-NEXT: [[C:%.+]] = arith.constant dense<[3.{{0*}}e+00, 4.{{0*}}e+00, 5.{{0*}}e+00, 6.{{0*}…
73 %2 = arith.addf %0, %1 : tensor<4xf32>
83 %0 = arith.constant 1 : i32
84 %1 = arith.constant 5 : i32
86 // CHECK-NEXT: [[C:%.+]] = arith.constant 6 : i32
87 %2 = arith.addi %0, %1 : i32
99 %c1 = arith.constant 1 : i1
100 %cAllOnes_32 = arith.constant 4294967295 : i32
102 // CHECK: [[C31:%.*]] = arith.constant 31 : i32
103 %c31 = arith.constant 31 : i32
104 %1 = arith.andi %arg0, %c1 : i1
105 %2 = arith.andi %arg1, %cAllOnes_32 : i32
107 // CHECK: [[VAL:%.*]] = arith.andi [[ARG1]], [[C31]]
108 %3 = arith.andi %2, %c31 : i32
119 // CHECK: [[C31:%.*]] = arith.constant 31 : index
120 %c31 = arith.constant 31 : index
121 %c_AllOnes = arith.constant -1 : index
122 %1 = arith.andi %arg0, %c31 : index
124 // CHECK: arith.andi [[ARG]], [[C31]]
125 %2 = arith.andi %1, %c_AllOnes : index
134 %cAllOnes_32 = arith.constant dense<4294967295> : tensor<2xi32>
136 // CHECK: [[C31:%.*]] = arith.constant dense<31> : tensor<2xi32>
137 %c31 = arith.constant dense<31> : tensor<2xi32>
139 // CHECK: [[CMIXED:%.*]] = arith.constant dense<[31, -1]> : tensor<2xi32>
140 %c_mixed = arith.constant dense<[31, 4294967295]> : tensor<2xi32>
142 %0 = arith.andi %arg0, %cAllOnes_32 : tensor<2xi32>
144 // CHECK: [[T1:%.*]] = arith.andi [[ARG0]], [[C31]]
145 %1 = arith.andi %0, %c31 : tensor<2xi32>
147 // CHECK: [[T2:%.*]] = arith.andi [[T1]], [[CMIXED]]
148 %2 = arith.andi %1, %c_mixed : tensor<2xi32>
159 %cAllOnes_32 = arith.constant dense<4294967295> : vector<2xi32>
161 // CHECK: [[C31:%.*]] = arith.constant dense<31> : vector<2xi32>
162 %c31 = arith.constant dense<31> : vector<2xi32>
164 // CHECK: [[CMIXED:%.*]] = arith.constant dense<[31, -1]> : vector<2xi32>
165 %c_mixed = arith.constant dense<[31, 4294967295]> : vector<2xi32>
167 %0 = arith.andi %arg0, %cAllOnes_32 : vector<2xi32>
169 // CHECK: [[T1:%.*]] = arith.andi [[ARG0]], [[C31]]
170 %1 = arith.andi %0, %c31 : vector<2xi32>
172 // CHECK: [[T2:%.*]] = arith.andi [[T1]], [[CMIXED]]
173 %2 = arith.andi %1, %c_mixed : vector<2xi32>
183 %0 = arith.constant dense<1> : vector<8xi32>
184 %1 = arith.constant dense<5> : vector<8xi32>
186 // CHECK-NEXT: [[C:%.+]] = arith.constant dense<6> : vector<8xi32>
187 %2 = arith.addi %0, %1 : vector<8xi32>
197 %0 = arith.constant 4.5 : f32
198 %1 = arith.constant 1.5 : f32
200 // CHECK-NEXT: [[C:%.+]] = arith.constant 3.{{0*}}e+00 : f32
201 %2 = arith.subf %0, %1 : f32
211 %0 = arith.constant dense<4.5> : vector<4xf32>
212 %1 = arith.constant dense<1.5> : vector<4xf32>
214 // CHECK-NEXT: [[C:%.+]] = arith.constant dense<3.{{0*}}e+00> : vector<4xf32>
215 %2 = arith.subf %0, %1 : vector<4xf32>
226 %0 = arith.constant 4 : i32
227 %1 = arith.constant 1 : i32
228 %2 = arith.constant 0 : i32
230 // CHECK-NEXT:[[C3:%.+]] = arith.constant 3 : i32
231 %3 = arith.subi %0, %1 : i32
232 %4 = arith.subi %arg0, %2 : i32
242 %0 = arith.constant dense<4> : tensor<4xi32>
243 %1 = arith.constant dense<1> : tensor<4xi32>
245 // CHECK-NEXT: [[C:%.+]] = arith.constant dense<3> : tensor<4xi32>
246 %2 = arith.subi %0, %1 : tensor<4xi32>
256 %c177 = arith.constant 177 : index
257 %c211 = arith.constant 211 : index
258 %N = arith.constant 1075 : index
260 // CHECK:[[C1159:%.+]] = arith.constant 1159 : index
261 // CHECK:[[C1152:%.+]] = arith.constant 1152 : index
267 // CHECK:[[C42:%.+]] = arith.constant 42 : index
278 %0 = arith.constant 4.5 : f32
279 %1 = arith.constant 1.5 : f32
281 // CHECK-NEXT: [[C:%.+]] = arith.constant 6.75{{0*}}e+00 : f32
282 %2 = arith.mulf %0, %1 : f32
292 %0 = arith.constant dense<4.5> : tensor<4xf32>
293 %1 = arith.constant dense<1.5> : tensor<4xf32>
295 // CHECK-NEXT: [[C:%.+]] = arith.constant dense<6.75{{0*}}e+00> : tensor<4xf32>
296 %2 = arith.mulf %0, %1 : tensor<4xf32>
306 // CHECK-DAG: [[C0:%.+]] = arith.constant 0
307 %z = arith.constant 0 : i32
308 // CHECK-DAG: [[C6:%.+]] = arith.constant 6
309 %0 = arith.constant 6 : i32
310 %1 = arith.constant 2 : i32
312 // CHECK-NEXT: [[C3:%.+]] = arith.constant 3 : i32
313 %2 = arith.divsi %0, %1 : i32
315 %3 = arith.constant -2 : i32
317 // CHECK-NEXT: [[CM3:%.+]] = arith.constant -3 : i32
318 %4 = arith.divsi %0, %3 : i32
320 // CHECK-NEXT: [[XZ:%.+]] = arith.divsi [[C6]], [[C0]]
321 %5 = arith.divsi %0, %z : i32
331 // CHECK-DAG: [[C0:%.+]] = arith.constant dense<0>
332 %z = arith.constant dense<0> : tensor<4xi32>
333 // CHECK-DAG: [[C6:%.+]] = arith.constant dense<6>
334 %0 = arith.constant dense<6> : tensor<4xi32>
335 %1 = arith.constant dense<2> : tensor<4xi32>
337 // CHECK-NEXT: [[C3:%.+]] = arith.constant dense<3> : tensor<4xi32>
338 %2 = arith.divsi %0, %1 : tensor<4xi32>
340 %3 = arith.constant dense<-2> : tensor<4xi32>
342 // CHECK-NEXT: [[CM3:%.+]] = arith.constant dense<-3> : tensor<4xi32>
343 %4 = arith.divsi %0, %3 : tensor<4xi32>
345 // CHECK-NEXT: [[XZ:%.+]] = arith.divsi [[C6]], [[C0]]
346 %5 = arith.divsi %0, %z : tensor<4xi32>
356 %z = arith.constant 0 : i32
357 // CHECK-DAG: [[C6:%.+]] = arith.constant 6
358 %0 = arith.constant 6 : i32
359 %1 = arith.constant 2 : i32
361 // CHECK-DAG: [[C3:%.+]] = arith.constant 3 : i32
362 %2 = arith.divui %0, %1 : i32
364 %3 = arith.constant -2 : i32
367 // CHECK-DAG: [[C0:%.+]] = arith.constant 0 : i32
368 %4 = arith.divui %0, %3 : i32
370 // CHECK-NEXT: [[XZ:%.+]] = arith.divui [[C6]], [[C0]]
371 %5 = arith.divui %0, %z : i32
382 %z = arith.constant dense<0> : tensor<4xi32>
383 // CHECK-DAG: [[C6:%.+]] = arith.constant dense<6>
384 %0 = arith.constant dense<6> : tensor<4xi32>
385 %1 = arith.constant dense<2> : tensor<4xi32>
387 // CHECK-DAG: [[C3:%.+]] = arith.constant dense<3> : tensor<4xi32>
388 %2 = arith.divui %0, %1 : tensor<4xi32>
390 %3 = arith.constant dense<-2> : tensor<4xi32>
393 // CHECK-DAG: [[C0:%.+]] = arith.constant dense<0> : tensor<4xi32>
394 %4 = arith.divui %0, %3 : tensor<4xi32>
396 // CHECK-NEXT: [[XZ:%.+]] = arith.divui [[C6]], [[C0]]
397 %5 = arith.divui %0, %z : tensor<4xi32>
407 // CHECK-DAG: [[C0:%.+]] = arith.constant 0
408 %z = arith.constant 0 : i32
409 // CHECK-DAG: [[C6:%.+]] = arith.constant 7
410 %0 = arith.constant 7 : i32
411 %1 = arith.constant 2 : i32
414 // CHECK-NEXT: [[C3:%.+]] = arith.constant 3 : i32
415 %2 = arith.floordivsi %0, %1 : i32
417 %3 = arith.constant -2 : i32
420 // CHECK-NEXT: [[CM3:%.+]] = arith.constant -4 : i32
421 %4 = arith.floordivsi %0, %3 : i32
423 %5 = arith.constant -9 : i32
426 // CHECK-NEXT: [[CM4:%.+]] = arith.constant -5 : i32
427 %6 = arith.floordivsi %5, %1 : i32
429 %7 = arith.constant -13 : i32
432 // CHECK-NEXT: [[CM5:%.+]] = arith.constant 6 : i32
433 %8 = arith.floordivsi %7, %3 : i32
435 // CHECK-NEXT: [[XZ:%.+]] = arith.floordivsi [[C6]], [[C0]]
436 %9 = arith.floordivsi %0, %z : i32
445 // CHECK-DAG: [[C0:%.+]] = arith.constant 0
446 %z = arith.constant 0 : i32
447 // CHECK-DAG: [[C6:%.+]] = arith.constant 7
448 %0 = arith.constant 7 : i32
449 %1 = arith.constant 2 : i32
452 // CHECK-NEXT: [[C3:%.+]] = arith.constant 4 : i32
453 %2 = arith.ceildivsi %0, %1 : i32
455 %3 = arith.constant -2 : i32
458 // CHECK-NEXT: [[CM3:%.+]] = arith.constant -3 : i32
459 %4 = arith.ceildivsi %0, %3 : i32
461 %5 = arith.constant -9 : i32
464 // CHECK-NEXT: [[CM4:%.+]] = arith.constant -4 : i32
465 %6 = arith.ceildivsi %5, %1 : i32
467 %7 = arith.constant -15 : i32
470 // CHECK-NEXT: [[CM5:%.+]] = arith.constant 8 : i32
471 %8 = arith.ceildivsi %7, %3 : i32
473 // CHECK-NEXT: [[XZ:%.+]] = arith.ceildivsi [[C6]], [[C0]]
474 %9 = arith.ceildivsi %0, %z : i32
483 // CHECK-DAG: [[C0:%.+]] = arith.constant 0
484 %z = arith.constant 0 : i32
485 // CHECK-DAG: [[C6:%.+]] = arith.constant 7
486 %0 = arith.constant 7 : i32
487 %1 = arith.constant 2 : i32
490 // CHECK-NEXT: [[C3:%.+]] = arith.constant 4 : i32
491 %2 = arith.ceildivui %0, %1 : i32
493 %3 = arith.constant -2 : i32
496 // CHECK-NEXT: [[CM1:%.+]] = arith.constant 1 : i32
497 %4 = arith.ceildivui %0, %3 : i32
499 %5 = arith.constant -8 : i32
502 // CHECK-NEXT: [[CM4:%.+]] = arith.constant 2147483644 : i32
503 %6 = arith.ceildivui %5, %1 : i32
505 %7 = arith.constant -15 : i32
508 // CHECK-NOT: arith.constant 1 : i32
509 %8 = arith.ceildivui %7, %3 : i32
511 // CHECK-NEXT: [[XZ:%.+]] = arith.ceildivui [[C6]], [[C0]]
512 %9 = arith.ceildivui %0, %z : i32
521 %0 = arith.constant 5 : i32
522 %1 = arith.constant 2 : i32
523 %2 = arith.constant 1 : i32
524 %3 = arith.constant -2 : i32
526 // CHECK-NEXT:[[C1:%.+]] = arith.constant 1 : i32
527 %4 = arith.remsi %0, %1 : i32
528 %5 = arith.remsi %0, %3 : i32
529 // CHECK-NEXT:[[C0:%.+]] = arith.constant 0 : i32
530 %6 = arith.remsi %a, %2 : i32
540 %0 = arith.constant 5 : i32
541 %1 = arith.constant 2 : i32
542 %2 = arith.constant 1 : i32
543 %3 = arith.constant -2 : i32
545 // CHECK-DAG:[[C1:%.+]] = arith.constant 1 : i32
546 %4 = arith.remui %0, %1 : i32
547 // CHECK-DAG:[[C5:%.+]] = arith.constant 5 : i32
548 %5 = arith.remui %0, %3 : i32
549 // CHECK-DAG:[[C0:%.+]] = arith.constant 0 : i32
550 %6 = arith.remui %a, %2 : i32
560 %0 = arith.constant 4 : i32
561 %1 = arith.constant 2 : i32
563 // CHECK-NEXT:[[C8:%.+]] = arith.constant 8 : i32
564 %2 = arith.muli %0, %1 : i32
574 %0 = arith.constant dense<4> : vector<4xi32>
575 %1 = arith.constant dense<2> : vector<4xi32>
577 // CHECK-NEXT: [[C:%.+]] = arith.constant dense<8> : vector<4xi32>
578 %2 = arith.muli %0, %1 : vector<4xi32>
587 // CHECK:[[C4:%.+]] = arith.constant 4 : index
588 %c1 = arith.constant 1 : index
599 %c42 = arith.constant 42 : i32
600 %cm1 = arith.constant -1 : i32
601 // CHECK-DAG: [[F:%.+]] = arith.constant false
602 // CHECK-DAG: [[T:%.+]] = arith.constant true
604 %0 = arith.cmpi eq, %c42, %cm1 : i32
606 %1 = arith.cmpi ne, %c42, %cm1 : i32
608 %2 = arith.cmpi slt, %c42, %cm1 : i32
610 %3 = arith.cmpi sle, %c42, %cm1 : i32
612 %4 = arith.cmpi sgt, %c42, %cm1 : i32
614 %5 = arith.cmpi sge, %c42, %cm1 : i32
616 %6 = arith.cmpi ult, %c42, %cm1 : i32
618 %7 = arith.cmpi ule, %c42, %cm1 : i32
620 %8 = arith.cmpi ugt, %c42, %cm1 : i32
622 %9 = arith.cmpi uge, %c42, %cm1 : i32
630 %c42 = arith.constant 42. : f32
631 %cm1 = arith.constant -1. : f32
632 // CHECK-DAG: [[F:%.+]] = arith.constant false
633 // CHECK-DAG: [[T:%.+]] = arith.constant true
635 %0 = arith.cmpf false, %c42, %cm1 : f32
637 %1 = arith.cmpf oeq, %c42, %cm1 : f32
639 %2 = arith.cmpf ogt, %c42, %cm1 : f32
641 %3 = arith.cmpf oge, %c42, %cm1 : f32
643 %4 = arith.cmpf olt, %c42, %cm1 : f32
645 %5 = arith.cmpf ole, %c42, %cm1 : f32
647 %6 = arith.cmpf one, %c42, %cm1 : f32
649 %7 = arith.cmpf ord, %c42, %cm1 : f32
651 %8 = arith.cmpf ueq, %c42, %cm1 : f32
653 %9 = arith.cmpf ugt, %c42, %cm1 : f32
655 %10 = arith.cmpf uge, %c42, %cm1 : f32
657 %11 = arith.cmpf ult, %c42, %cm1 : f32
659 %12 = arith.cmpf ule, %c42, %cm1 : f32
661 %13 = arith.cmpf une, %c42, %cm1 : f32
663 %14 = arith.cmpf uno, %c42, %cm1 : f32
665 %15 = arith.cmpf true, %c42, %cm1 : f32
673 %c42 = arith.constant 42. : f32
674 %cqnan = arith.constant 0xFFFFFFFF : f32
675 // CHECK-DAG: [[F:%.+]] = arith.constant false
676 // CHECK-DAG: [[T:%.+]] = arith.constant true
678 %0 = arith.cmpf false, %c42, %cqnan : f32
680 %1 = arith.cmpf oeq, %c42, %cqnan : f32
682 %2 = arith.cmpf ogt, %c42, %cqnan : f32
684 %3 = arith.cmpf oge, %c42, %cqnan : f32
686 %4 = arith.cmpf olt, %c42, %cqnan : f32
688 %5 = arith.cmpf ole, %c42, %cqnan : f32
690 %6 = arith.cmpf one, %c42, %cqnan : f32
692 %7 = arith.cmpf ord, %c42, %cqnan : f32
694 %8 = arith.cmpf ueq, %c42, %cqnan : f32
696 %9 = arith.cmpf ugt, %c42, %cqnan : f32
698 %10 = arith.cmpf uge, %c42, %cqnan : f32
700 %11 = arith.cmpf ult, %c42, %cqnan : f32
702 %12 = arith.cmpf ule, %c42, %cqnan : f32
704 %13 = arith.cmpf une, %c42, %cqnan : f32
706 %14 = arith.cmpf uno, %c42, %cqnan : f32
708 %15 = arith.cmpf true, %c42, %cqnan : f32
716 %c42 = arith.constant 42. : f32
717 %cpinf = arith.constant 0x7F800000 : f32
718 // CHECK-DAG: [[F:%.+]] = arith.constant false
719 // CHECK-DAG: [[T:%.+]] = arith.constant true
721 %0 = arith.cmpf false, %c42, %cpinf: f32
723 %1 = arith.cmpf oeq, %c42, %cpinf: f32
725 %2 = arith.cmpf ogt, %c42, %cpinf: f32
727 %3 = arith.cmpf oge, %c42, %cpinf: f32
729 %4 = arith.cmpf olt, %c42, %cpinf: f32
731 %5 = arith.cmpf ole, %c42, %cpinf: f32
733 %6 = arith.cmpf one, %c42, %cpinf: f32
735 %7 = arith.cmpf ord, %c42, %cpinf: f32
737 %8 = arith.cmpf ueq, %c42, %cpinf: f32
739 %9 = arith.cmpf ugt, %c42, %cpinf: f32
741 %10 = arith.cmpf uge, %c42, %cpinf: f32
743 %11 = arith.cmpf ult, %c42, %cpinf: f32
745 %12 = arith.cmpf ule, %c42, %cpinf: f32
747 %13 = arith.cmpf une, %c42, %cpinf: f32
749 %14 = arith.cmpf uno, %c42, %cpinf: f32
751 %15 = arith.cmpf true, %c42, %cpinf: f32
760 // CHECK-NEXT: arith.constant 2
762 %0 = arith.constant 1 : i32
763 %2 = arith.addi %0, %0 : i32
768 // CHECK-NEXT: arith.constant 2
770 %0 = arith.constant 1 : i32
771 %2 = arith.addi %0, %0 : i32
782 // CHECK-NEXT: arith.constant 2
785 %0 = arith.constant 1 : i32
786 %2 = arith.addi %0, %0 : i32