brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.3 KiB · 54020b8 Raw
106 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 42; GVN failed to do constant expression folding and expanded3; them unfolded in many places, producing exponentially large const4; expressions. As a result, the compilation never fisished.5; This test checks that we are folding constant expression6; PR 284187; RUN: opt -passes=newgvn -S < %s | FileCheck %s8%2 = type { i32, i32, i32, i32, i32 }9define i32 @_Z16vector3util_mainv(i32 %x, i32 %y)  {10; CHECK-LABEL: define i32 @_Z16vector3util_mainv(11; CHECK-SAME: i32 [[X:%.*]], i32 [[Y:%.*]]) {12; CHECK-NEXT:    [[TMP1:%.*]] = alloca [[TMP0:%.*]], align 413; CHECK-NEXT:    [[TMP114:%.*]] = getelementptr inbounds [[TMP0]], ptr [[TMP1]], i64 0, i32 114; CHECK-NEXT:    store <4 x i32> <i32 234567891, i32 345678912, i32 456789123, i32 0>, ptr [[TMP114]], align 415; CHECK-NEXT:    store i32 310393545, ptr [[TMP114]], align 416; CHECK-NEXT:    store i32 -383584258, ptr [[TMP114]], align 417; CHECK-NEXT:    store i32 -57163022, ptr [[TMP114]], align 418; CHECK-NEXT:    ret i32 019;20  %tmp1 = alloca %2, align 421  %tmp114 = getelementptr inbounds %2, ptr %tmp1, i64 0, i32 122  store <4 x i32> <i32 234567891, i32 345678912, i32 456789123, i32 0>, ptr %tmp114, align 423  %tmp1683 = getelementptr inbounds %2, ptr %tmp1, i64 0, i32 124  %tmp1688 = load i32, ptr %tmp1683, align 425  %tmp1693 = shl i32 %tmp1688, 526  %tmp1694 = xor i32 %tmp1693, %tmp168827  %tmp1695 = lshr i32 %tmp1694, 728  %tmp1696 = xor i32 %tmp1695, %tmp169429  %tmp1697 = shl i32 %tmp1696, 2230  %tmp1698 = xor i32 %tmp1697, %tmp169631  %tmp1707 = shl i32 %tmp1698, 532  %tmp1708 = xor i32 %tmp1707, %tmp169833  %tmp1709 = lshr i32 %tmp1708, 734  %tmp1710 = xor i32 %tmp1709, %tmp170835  %tmp1711 = shl i32 %tmp1710, 2236  %tmp1712 = xor i32 %tmp1711, %tmp171037  %tmp1721 = shl i32 %tmp1712, 538  %tmp1722 = xor i32 %tmp1721, %tmp171239  %tmp1723 = lshr i32 %tmp1722, 740  %tmp1724 = xor i32 %tmp1723, %tmp172241  %tmp1725 = shl i32 %tmp1724, 2242  %tmp1726 = xor i32 %tmp1725, %tmp172443  %tmp1735 = shl i32 %tmp1726, 544  %tmp1736 = xor i32 %tmp1735, %tmp172645  %tmp1737 = lshr i32 %tmp1736, 746  %tmp1738 = xor i32 %tmp1737, %tmp173647  %tmp1739 = shl i32 %tmp1738, 2248  %tmp1740 = xor i32 %tmp1739, %tmp173849  store i32 %tmp1740, ptr %tmp1683, align 450  %tmp1756 = getelementptr inbounds %2, ptr %tmp1, i64 0, i32 151  %tmp1761 = load i32, ptr %tmp1756, align 452  %tmp1766 = shl i32 %tmp1761, 553  %tmp1767 = xor i32 %tmp1766, %tmp176154  %tmp1768 = lshr i32 %tmp1767, 755  %tmp1769 = xor i32 %tmp1768, %tmp176756  %tmp1770 = shl i32 %tmp1769, 2257  %tmp1771 = xor i32 %tmp1770, %tmp176958  %tmp1780 = shl i32 %tmp1771, 559  %tmp1781 = xor i32 %tmp1780, %tmp177160  %tmp1782 = lshr i32 %tmp1781, 761  %tmp1783 = xor i32 %tmp1782, %tmp178162  %tmp1784 = shl i32 %tmp1783, 2263  %tmp1785 = xor i32 %tmp1784, %tmp178364  %tmp1794 = shl i32 %tmp1785, 565  %tmp1795 = xor i32 %tmp1794, %tmp178566  %tmp1796 = lshr i32 %tmp1795, 767  %tmp1797 = xor i32 %tmp1796, %tmp179568  %tmp1798 = shl i32 %tmp1797, 2269  %tmp1799 = xor i32 %tmp1798, %tmp179770  %tmp1808 = shl i32 %tmp1799, 571  %tmp1809 = xor i32 %tmp1808, %tmp179972  %tmp1810 = lshr i32 %tmp1809, 773  %tmp1811 = xor i32 %tmp1810, %tmp180974  %tmp1812 = shl i32 %tmp1811, 2275  %tmp1813 = xor i32 %tmp1812, %tmp181176  store i32 %tmp1813, ptr %tmp1756, align 477  %tmp2645 = getelementptr inbounds %2, ptr %tmp1, i64 0, i32 178  %tmp2650 = load i32, ptr %tmp2645, align 479  %tmp2655 = shl i32 %tmp2650, 580  %tmp2656 = xor i32 %tmp2655, %tmp265081  %tmp2657 = lshr i32 %tmp2656, 782  %tmp2658 = xor i32 %tmp2657, %tmp265683  %tmp2659 = shl i32 %tmp2658, 2284  %tmp2660 = xor i32 %tmp2659, %tmp265885  %tmp2669 = shl i32 %tmp2660, 586  %tmp2670 = xor i32 %tmp2669, %tmp266087  %tmp2671 = lshr i32 %tmp2670, 788  %tmp2672 = xor i32 %tmp2671, %tmp267089  %tmp2673 = shl i32 %tmp2672, 2290  %tmp2674 = xor i32 %tmp2673, %tmp267291  %tmp2683 = shl i32 %tmp2674, 592  %tmp2684 = xor i32 %tmp2683, %tmp267493  %tmp2685 = lshr i32 %tmp2684, 794  %tmp2686 = xor i32 %tmp2685, %tmp268495  %tmp2687 = shl i32 %tmp2686, 2296  %tmp2688 = xor i32 %tmp2687, %tmp268697  %tmp2697 = shl i32 %tmp2688, 598  %tmp2698 = xor i32 %tmp2697, %tmp268899  %tmp2699 = lshr i32 %tmp2698, 7100  %tmp2700 = xor i32 %tmp2699, %tmp2698101  %tmp2701 = shl i32 %tmp2700, 22102  %tmp2702 = xor i32 %tmp2701, %tmp2700103  store i32 %tmp2702, ptr %tmp2645, align 4104  ret i32 0105}106