OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 uint32_t vshr_s8[4], vshr_u16[4], vshr_s32[5]; | 1311 uint32_t vshr_s8[4], vshr_u16[4], vshr_s32[5]; |
1312 uint32_t vceq[4], vceqf[4], vcgef[4], vcgtf[4]; | 1312 uint32_t vceq[4], vceqf[4], vcgef[4], vcgtf[4]; |
1313 uint32_t vcge_s8[4], vcge_u16[4], vcge_s32[4]; | 1313 uint32_t vcge_s8[4], vcge_u16[4], vcge_s32[4]; |
1314 uint32_t vcgt_s8[4], vcgt_u16[4], vcgt_s32[4]; | 1314 uint32_t vcgt_s8[4], vcgt_u16[4], vcgt_s32[4]; |
1315 float vrecpe[4], vrecps[4], vrsqrte[4], vrsqrts[4]; | 1315 float vrecpe[4], vrecps[4], vrsqrte[4], vrsqrts[4]; |
1316 float vminf[4], vmaxf[4]; | 1316 float vminf[4], vmaxf[4]; |
1317 uint32_t vtst[4], vbsl[4]; | 1317 uint32_t vtst[4], vbsl[4]; |
1318 uint32_t vext[4]; | 1318 uint32_t vext[4]; |
1319 uint32_t vzip8a[4], vzip8b[4], vzip16a[4], vzip16b[4], vzip32a[4], | 1319 uint32_t vzip8a[4], vzip8b[4], vzip16a[4], vzip16b[4], vzip32a[4], |
1320 vzip32b[4]; | 1320 vzip32b[4]; |
1321 uint32_t vzipd8a[2], vzipd8b[2], vzipd16a[2], vzipd16b[2], vzipd32a[2], | |
1322 vzipd32b[2]; | |
1323 uint32_t vuzp8a[4], vuzp8b[4], vuzp16a[4], vuzp16b[4], vuzp32a[4], | 1321 uint32_t vuzp8a[4], vuzp8b[4], vuzp16a[4], vuzp16b[4], vuzp32a[4], |
1324 vuzp32b[4]; | 1322 vuzp32b[4]; |
1325 uint32_t vuzpd8a[2], vuzpd8b[2], vuzpd16a[2], vuzpd16b[2], vuzpd32a[2], | |
1326 vuzpd32b[2]; | |
1327 uint32_t vrev64_32[4], vrev64_16[4], vrev64_8[4]; | 1323 uint32_t vrev64_32[4], vrev64_16[4], vrev64_8[4]; |
1328 uint32_t vrev32_16[4], vrev32_8[4], vrev16_8[4]; | 1324 uint32_t vrev32_16[4], vrev32_8[4], vrev16_8[4]; |
1329 uint32_t vtrn8a[4], vtrn8b[4], vtrn16a[4], vtrn16b[4], vtrn32a[4], | 1325 uint32_t vtrn8a[4], vtrn8b[4], vtrn16a[4], vtrn16b[4], vtrn32a[4], |
1330 vtrn32b[4]; | 1326 vtrn32b[4]; |
1331 uint32_t vtrnd8a[2], vtrnd8b[2], vtrnd16a[2], vtrnd16b[2], vtrnd32a[2], | |
1332 vtrnd32b[2]; | |
1333 uint32_t vtbl[2], vtbx[2]; | 1327 uint32_t vtbl[2], vtbx[2]; |
1334 } T; | 1328 } T; |
1335 T t; | 1329 T t; |
1336 | 1330 |
1337 // Create a function that accepts &t, and loads, manipulates, and stores | 1331 // Create a function that accepts &t, and loads, manipulates, and stores |
1338 // the doubles, floats, and SIMD values. | 1332 // the doubles, floats, and SIMD values. |
1339 Assembler assm(isolate, NULL, 0); | 1333 Assembler assm(isolate, NULL, 0); |
1340 | 1334 |
1341 if (CpuFeatures::IsSupported(NEON)) { | 1335 if (CpuFeatures::IsSupported(NEON)) { |
1342 CpuFeatureScope scope(&assm, NEON); | 1336 CpuFeatureScope scope(&assm, NEON); |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1855 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1849 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1856 | 1850 |
1857 // vext. | 1851 // vext. |
1858 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); | 1852 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); |
1859 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1853 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1860 __ vmov(q1, q0); | 1854 __ vmov(q1, q0); |
1861 __ vext(q2, q0, q1, 3); | 1855 __ vext(q2, q0, q1, 3); |
1862 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vext)))); | 1856 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vext)))); |
1863 __ vst1(Neon8, NeonListOperand(q2), NeonMemOperand(r4)); | 1857 __ vst1(Neon8, NeonListOperand(q2), NeonMemOperand(r4)); |
1864 | 1858 |
1865 // vzip (q-register). | 1859 // vzip. |
1866 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); | 1860 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); |
1867 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1861 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1868 __ vmov(q1, q0); | 1862 __ vmov(q1, q0); |
1869 __ vzip(Neon8, q0, q1); | 1863 __ vzip(Neon8, q0, q1); |
1870 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip8a)))); | 1864 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip8a)))); |
1871 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1865 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1872 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip8b)))); | 1866 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip8b)))); |
1873 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); | 1867 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); |
1874 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); | 1868 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); |
1875 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1869 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1876 __ vmov(q1, q0); | 1870 __ vmov(q1, q0); |
1877 __ vzip(Neon16, q0, q1); | 1871 __ vzip(Neon16, q0, q1); |
1878 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip16a)))); | 1872 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip16a)))); |
1879 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1873 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1880 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip16b)))); | 1874 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip16b)))); |
1881 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); | 1875 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); |
1882 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); | 1876 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); |
1883 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1877 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1884 __ vmov(q1, q0); | 1878 __ vmov(q1, q0); |
1885 __ vzip(Neon32, q0, q1); | 1879 __ vzip(Neon32, q0, q1); |
1886 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip32a)))); | 1880 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip32a)))); |
1887 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1881 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1888 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip32b)))); | 1882 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vzip32b)))); |
1889 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); | 1883 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); |
1890 | 1884 |
1891 // vzip (d-register). | 1885 // vuzp. |
1892 __ vldr(d2, r0, offsetof(T, lane_test)); | |
1893 __ vmov(d0, d2); | |
1894 __ vmov(d1, d2); | |
1895 __ vzip(Neon8, d0, d1); | |
1896 __ vstr(d0, r0, offsetof(T, vzipd8a)); | |
1897 __ vstr(d1, r0, offsetof(T, vzipd8b)); | |
1898 __ vmov(d0, d2); | |
1899 __ vmov(d1, d2); | |
1900 __ vzip(Neon16, d0, d1); | |
1901 __ vstr(d0, r0, offsetof(T, vzipd16a)); | |
1902 __ vstr(d1, r0, offsetof(T, vzipd16b)); | |
1903 __ vmov(d0, d2); | |
1904 __ vmov(d1, d2); | |
1905 __ vzip(Neon32, d0, d1); | |
1906 __ vstr(d0, r0, offsetof(T, vzipd32a)); | |
1907 __ vstr(d1, r0, offsetof(T, vzipd32b)); | |
1908 | |
1909 // vuzp (q-register). | |
1910 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); | 1886 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); |
1911 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1887 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1912 __ vmov(q1, q0); | 1888 __ vmov(q1, q0); |
1913 __ vuzp(Neon8, q0, q1); | 1889 __ vuzp(Neon8, q0, q1); |
1914 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp8a)))); | 1890 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp8a)))); |
1915 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1891 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1916 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp8b)))); | 1892 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp8b)))); |
1917 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); | 1893 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); |
1918 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); | 1894 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); |
1919 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1895 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1920 __ vmov(q1, q0); | 1896 __ vmov(q1, q0); |
1921 __ vuzp(Neon16, q0, q1); | 1897 __ vuzp(Neon16, q0, q1); |
1922 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp16a)))); | 1898 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp16a)))); |
1923 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1899 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1924 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp16b)))); | 1900 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp16b)))); |
1925 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); | 1901 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); |
1926 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); | 1902 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); |
1927 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1903 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1928 __ vmov(q1, q0); | 1904 __ vmov(q1, q0); |
1929 __ vuzp(Neon32, q0, q1); | 1905 __ vuzp(Neon32, q0, q1); |
1930 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp32a)))); | 1906 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp32a)))); |
1931 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1907 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1932 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp32b)))); | 1908 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vuzp32b)))); |
1933 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); | 1909 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); |
1934 | 1910 |
1935 // vuzp (d-register). | 1911 // vtrn. |
1936 __ vldr(d2, r0, offsetof(T, lane_test)); | |
1937 __ vmov(d0, d2); | |
1938 __ vmov(d1, d2); | |
1939 __ vuzp(Neon8, d0, d1); | |
1940 __ vstr(d0, r0, offsetof(T, vuzpd8a)); | |
1941 __ vstr(d1, r0, offsetof(T, vuzpd8b)); | |
1942 __ vmov(d0, d2); | |
1943 __ vmov(d1, d2); | |
1944 __ vuzp(Neon16, d0, d1); | |
1945 __ vstr(d0, r0, offsetof(T, vuzpd16a)); | |
1946 __ vstr(d1, r0, offsetof(T, vuzpd16b)); | |
1947 __ vmov(d0, d2); | |
1948 __ vmov(d1, d2); | |
1949 __ vuzp(Neon32, d0, d1); | |
1950 __ vstr(d0, r0, offsetof(T, vuzpd32a)); | |
1951 __ vstr(d1, r0, offsetof(T, vuzpd32b)); | |
1952 | |
1953 // vtrn (q-register). | |
1954 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); | 1912 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); |
1955 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1913 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1956 __ vmov(q1, q0); | 1914 __ vmov(q1, q0); |
1957 __ vtrn(Neon8, q0, q1); | 1915 __ vtrn(Neon8, q0, q1); |
1958 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn8a)))); | 1916 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn8a)))); |
1959 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1917 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1960 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn8b)))); | 1918 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn8b)))); |
1961 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); | 1919 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); |
1962 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); | 1920 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); |
1963 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1921 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1964 __ vmov(q1, q0); | 1922 __ vmov(q1, q0); |
1965 __ vtrn(Neon16, q0, q1); | 1923 __ vtrn(Neon16, q0, q1); |
1966 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn16a)))); | 1924 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn16a)))); |
1967 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1925 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1968 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn16b)))); | 1926 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn16b)))); |
1969 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); | 1927 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); |
1970 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); | 1928 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); |
1971 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1929 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1972 __ vmov(q1, q0); | 1930 __ vmov(q1, q0); |
1973 __ vtrn(Neon32, q0, q1); | 1931 __ vtrn(Neon32, q0, q1); |
1974 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn32a)))); | 1932 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn32a)))); |
1975 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1933 __ vst1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
1976 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn32b)))); | 1934 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vtrn32b)))); |
1977 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); | 1935 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); |
1978 | 1936 |
1979 // vtrn (d-register). | |
1980 __ vldr(d2, r0, offsetof(T, lane_test)); | |
1981 __ vmov(d0, d2); | |
1982 __ vmov(d1, d2); | |
1983 __ vtrn(Neon8, d0, d1); | |
1984 __ vstr(d0, r0, offsetof(T, vtrnd8a)); | |
1985 __ vstr(d1, r0, offsetof(T, vtrnd8b)); | |
1986 __ vmov(d0, d2); | |
1987 __ vmov(d1, d2); | |
1988 __ vtrn(Neon16, d0, d1); | |
1989 __ vstr(d0, r0, offsetof(T, vtrnd16a)); | |
1990 __ vstr(d1, r0, offsetof(T, vtrnd16b)); | |
1991 __ vmov(d0, d2); | |
1992 __ vmov(d1, d2); | |
1993 __ vtrn(Neon32, d0, d1); | |
1994 __ vstr(d0, r0, offsetof(T, vtrnd32a)); | |
1995 __ vstr(d1, r0, offsetof(T, vtrnd32b)); | |
1996 | |
1997 // vrev64/32/16 | 1937 // vrev64/32/16 |
1998 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); | 1938 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, lane_test)))); |
1999 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); | 1939 __ vld1(Neon8, NeonListOperand(q0), NeonMemOperand(r4)); |
2000 __ vrev64(Neon32, q1, q0); | 1940 __ vrev64(Neon32, q1, q0); |
2001 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vrev64_32)))); | 1941 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vrev64_32)))); |
2002 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); | 1942 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); |
2003 __ vrev64(Neon16, q1, q0); | 1943 __ vrev64(Neon16, q1, q0); |
2004 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vrev64_16)))); | 1944 __ add(r4, r0, Operand(static_cast<int32_t>(offsetof(T, vrev64_16)))); |
2005 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); | 1945 __ vst1(Neon8, NeonListOperand(q1), NeonMemOperand(r4)); |
2006 __ vrev64(Neon8, q1, q0); | 1946 __ vrev64(Neon8, q1, q0); |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2193 | 2133 |
2194 CHECK_EQ_32X4(vext, 0x06050403u, 0x0a090807u, 0x0e0d0c0bu, 0x0201000fu); | 2134 CHECK_EQ_32X4(vext, 0x06050403u, 0x0a090807u, 0x0e0d0c0bu, 0x0201000fu); |
2195 | 2135 |
2196 CHECK_EQ_32X4(vzip8a, 0x01010000u, 0x03030202u, 0x05050404u, 0x07070606u); | 2136 CHECK_EQ_32X4(vzip8a, 0x01010000u, 0x03030202u, 0x05050404u, 0x07070606u); |
2197 CHECK_EQ_32X4(vzip8b, 0x09090808u, 0x0b0b0a0au, 0x0d0d0c0cu, 0x0f0f0e0eu); | 2137 CHECK_EQ_32X4(vzip8b, 0x09090808u, 0x0b0b0a0au, 0x0d0d0c0cu, 0x0f0f0e0eu); |
2198 CHECK_EQ_32X4(vzip16a, 0x01000100u, 0x03020302u, 0x05040504u, 0x07060706u); | 2138 CHECK_EQ_32X4(vzip16a, 0x01000100u, 0x03020302u, 0x05040504u, 0x07060706u); |
2199 CHECK_EQ_32X4(vzip16b, 0x09080908u, 0x0b0a0b0au, 0x0d0c0d0cu, 0x0f0e0f0eu); | 2139 CHECK_EQ_32X4(vzip16b, 0x09080908u, 0x0b0a0b0au, 0x0d0c0d0cu, 0x0f0e0f0eu); |
2200 CHECK_EQ_32X4(vzip32a, 0x03020100u, 0x03020100u, 0x07060504u, 0x07060504u); | 2140 CHECK_EQ_32X4(vzip32a, 0x03020100u, 0x03020100u, 0x07060504u, 0x07060504u); |
2201 CHECK_EQ_32X4(vzip32b, 0x0b0a0908u, 0x0b0a0908u, 0x0f0e0d0cu, 0x0f0e0d0cu); | 2141 CHECK_EQ_32X4(vzip32b, 0x0b0a0908u, 0x0b0a0908u, 0x0f0e0d0cu, 0x0f0e0d0cu); |
2202 | 2142 |
2203 CHECK_EQ_32X2(vzipd8a, 0x01010000u, 0x03030202u); | |
2204 CHECK_EQ_32X2(vzipd8b, 0x05050404u, 0x07070606u); | |
2205 CHECK_EQ_32X2(vzipd16a, 0x01000100u, 0x03020302u); | |
2206 CHECK_EQ_32X2(vzipd16b, 0x05040504u, 0x07060706u); | |
2207 CHECK_EQ_32X2(vzipd32a, 0x03020100u, 0x03020100u); | |
2208 CHECK_EQ_32X2(vzipd32b, 0x07060504u, 0x07060504u); | |
2209 | |
2210 CHECK_EQ_32X4(vuzp8a, 0x06040200u, 0x0e0c0a08u, 0x06040200u, 0x0e0c0a08u); | 2143 CHECK_EQ_32X4(vuzp8a, 0x06040200u, 0x0e0c0a08u, 0x06040200u, 0x0e0c0a08u); |
2211 CHECK_EQ_32X4(vuzp8b, 0x07050301u, 0x0f0d0b09u, 0x07050301u, 0x0f0d0b09u); | 2144 CHECK_EQ_32X4(vuzp8b, 0x07050301u, 0x0f0d0b09u, 0x07050301u, 0x0f0d0b09u); |
2212 CHECK_EQ_32X4(vuzp16a, 0x05040100u, 0x0d0c0908u, 0x05040100u, 0x0d0c0908u); | 2145 CHECK_EQ_32X4(vuzp16a, 0x05040100u, 0x0d0c0908u, 0x05040100u, 0x0d0c0908u); |
2213 CHECK_EQ_32X4(vuzp16b, 0x07060302u, 0x0f0e0b0au, 0x07060302u, 0x0f0e0b0au); | 2146 CHECK_EQ_32X4(vuzp16b, 0x07060302u, 0x0f0e0b0au, 0x07060302u, 0x0f0e0b0au); |
2214 CHECK_EQ_32X4(vuzp32a, 0x03020100u, 0x0b0a0908u, 0x03020100u, 0x0b0a0908u); | 2147 CHECK_EQ_32X4(vuzp32a, 0x03020100u, 0x0b0a0908u, 0x03020100u, 0x0b0a0908u); |
2215 CHECK_EQ_32X4(vuzp32b, 0x07060504u, 0x0f0e0d0cu, 0x07060504u, 0x0f0e0d0cu); | 2148 CHECK_EQ_32X4(vuzp32b, 0x07060504u, 0x0f0e0d0cu, 0x07060504u, 0x0f0e0d0cu); |
2216 | 2149 |
2217 CHECK_EQ_32X2(vuzpd8a, 0x06040200u, 0x06040200u); | |
2218 CHECK_EQ_32X2(vuzpd8b, 0x07050301u, 0x07050301u); | |
2219 CHECK_EQ_32X2(vuzpd16a, 0x05040100u, 0x05040100u); | |
2220 CHECK_EQ_32X2(vuzpd16b, 0x07060302u, 0x07060302u); | |
2221 CHECK_EQ_32X2(vuzpd32a, 0x03020100u, 0x03020100u); | |
2222 CHECK_EQ_32X2(vuzpd32b, 0x07060504u, 0x07060504u); | |
2223 | |
2224 CHECK_EQ_32X4(vtrn8a, 0x02020000u, 0x06060404u, 0x0a0a0808u, 0x0e0e0c0cu); | 2150 CHECK_EQ_32X4(vtrn8a, 0x02020000u, 0x06060404u, 0x0a0a0808u, 0x0e0e0c0cu); |
2225 CHECK_EQ_32X4(vtrn8b, 0x03030101u, 0x07070505u, 0x0b0b0909u, 0x0f0f0d0du); | 2151 CHECK_EQ_32X4(vtrn8b, 0x03030101u, 0x07070505u, 0x0b0b0909u, 0x0f0f0d0du); |
2226 CHECK_EQ_32X4(vtrn16a, 0x01000100u, 0x05040504u, 0x09080908u, 0x0d0c0d0cu); | 2152 CHECK_EQ_32X4(vtrn16a, 0x01000100u, 0x05040504u, 0x09080908u, 0x0d0c0d0cu); |
2227 CHECK_EQ_32X4(vtrn16b, 0x03020302u, 0x07060706u, 0x0b0a0b0au, 0x0f0e0f0eu); | 2153 CHECK_EQ_32X4(vtrn16b, 0x03020302u, 0x07060706u, 0x0b0a0b0au, 0x0f0e0f0eu); |
2228 CHECK_EQ_32X4(vtrn32a, 0x03020100u, 0x03020100u, 0x0b0a0908u, 0x0b0a0908u); | 2154 CHECK_EQ_32X4(vtrn32a, 0x03020100u, 0x03020100u, 0x0b0a0908u, 0x0b0a0908u); |
2229 CHECK_EQ_32X4(vtrn32b, 0x07060504u, 0x07060504u, 0x0f0e0d0cu, 0x0f0e0d0cu); | 2155 CHECK_EQ_32X4(vtrn32b, 0x07060504u, 0x07060504u, 0x0f0e0d0cu, 0x0f0e0d0cu); |
2230 | 2156 |
2231 CHECK_EQ_32X2(vtrnd8a, 0x02020000u, 0x06060404u); | |
2232 CHECK_EQ_32X2(vtrnd8b, 0x03030101u, 0x07070505u); | |
2233 CHECK_EQ_32X2(vtrnd16a, 0x01000100u, 0x05040504u); | |
2234 CHECK_EQ_32X2(vtrnd16b, 0x03020302u, 0x07060706u); | |
2235 CHECK_EQ_32X2(vtrnd32a, 0x03020100u, 0x03020100u); | |
2236 CHECK_EQ_32X2(vtrnd32b, 0x07060504u, 0x07060504u); | |
2237 | |
2238 // src: 0 1 2 3 4 5 6 7 8 9 a b c d e f (little endian) | 2157 // src: 0 1 2 3 4 5 6 7 8 9 a b c d e f (little endian) |
2239 CHECK_EQ_32X4(vrev64_32, 0x07060504u, 0x03020100u, 0x0f0e0d0cu, | 2158 CHECK_EQ_32X4(vrev64_32, 0x07060504u, 0x03020100u, 0x0f0e0d0cu, |
2240 0x0b0a0908u); | 2159 0x0b0a0908u); |
2241 CHECK_EQ_32X4(vrev64_16, 0x05040706u, 0x01000302u, 0x0d0c0f0eu, | 2160 CHECK_EQ_32X4(vrev64_16, 0x05040706u, 0x01000302u, 0x0d0c0f0eu, |
2242 0x09080b0au); | 2161 0x09080b0au); |
2243 CHECK_EQ_32X4(vrev64_8, 0x04050607u, 0x00010203u, 0x0c0d0e0fu, 0x08090a0bu); | 2162 CHECK_EQ_32X4(vrev64_8, 0x04050607u, 0x00010203u, 0x0c0d0e0fu, 0x08090a0bu); |
2244 CHECK_EQ_32X4(vrev32_16, 0x01000302u, 0x05040706u, 0x09080b0au, | 2163 CHECK_EQ_32X4(vrev32_16, 0x01000302u, 0x05040706u, 0x09080b0au, |
2245 0x0d0c0f0eu); | 2164 0x0d0c0f0eu); |
2246 CHECK_EQ_32X4(vrev32_8, 0x00010203u, 0x04050607u, 0x08090a0bu, 0x0c0d0e0fu); | 2165 CHECK_EQ_32X4(vrev32_8, 0x00010203u, 0x04050607u, 0x08090a0bu, 0x0c0d0e0fu); |
2247 CHECK_EQ_32X4(vrev16_8, 0x02030001u, 0x06070405u, 0x0a0b0809u, 0x0e0f0c0du); | 2166 CHECK_EQ_32X4(vrev16_8, 0x02030001u, 0x06070405u, 0x0a0b0809u, 0x0e0f0c0du); |
(...skipping 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3925 HandleScope scope(isolate); | 3844 HandleScope scope(isolate); |
3926 | 3845 |
3927 Assembler assm(isolate, NULL, 0); | 3846 Assembler assm(isolate, NULL, 0); |
3928 __ mov(r0, Operand(isolate->factory()->infinity_value())); | 3847 __ mov(r0, Operand(isolate->factory()->infinity_value())); |
3929 __ BlockConstPoolFor(1019); | 3848 __ BlockConstPoolFor(1019); |
3930 for (int i = 0; i < 1019; ++i) __ nop(); | 3849 for (int i = 0; i < 1019; ++i) __ nop(); |
3931 __ vldr(d0, MemOperand(r0, 0)); | 3850 __ vldr(d0, MemOperand(r0, 0)); |
3932 } | 3851 } |
3933 | 3852 |
3934 #undef __ | 3853 #undef __ |
OLD | NEW |