[flang] Fix length handling in character kind implicit conversion (#74586)
[llvm-project.git] / lldb / test / Shell / Register / Inputs / x86-ymm-read.cpp
blob76f8970d085e0f5bfbcff04a729b7a06f7bb558a
1 #include <cstdint>
3 struct alignas(32) ymm_t {
4 uint64_t a, b, c, d;
5 };
7 int main() {
8 constexpr ymm_t ymm[] = {
9 { 0x0706050403020100, 0x0F0E0D0C0B0A0908,
10 0x1716151413121110, 0x1F1E1D1C1B1A1918, },
11 { 0x0807060504030201, 0x100F0E0D0C0B0A09,
12 0x1817161514131211, 0x201F1E1D1C1B1A19, },
13 { 0x0908070605040302, 0x11100F0E0D0C0B0A,
14 0x1918171615141312, 0x21201F1E1D1C1B1A, },
15 { 0x0A09080706050403, 0x1211100F0E0D0C0B,
16 0x1A19181716151413, 0x2221201F1E1D1C1B, },
17 { 0x0B0A090807060504, 0x131211100F0E0D0C,
18 0x1B1A191817161514, 0x232221201F1E1D1C, },
19 { 0x0C0B0A0908070605, 0x14131211100F0E0D,
20 0x1C1B1A1918171615, 0x24232221201F1E1D, },
21 { 0x0D0C0B0A09080706, 0x1514131211100F0E,
22 0x1D1C1B1A19181716, 0x2524232221201F1E, },
23 { 0x0E0D0C0B0A090807, 0x161514131211100F,
24 0x1E1D1C1B1A191817, 0x262524232221201F, },
25 #if defined(__x86_64__) || defined(_M_X64)
26 { 0x0F0E0D0C0B0A0908, 0x1716151413121110,
27 0x1F1E1D1C1B1A1918, 0x2726252423222120, },
28 { 0x100F0E0D0C0B0A09, 0x1817161514131211,
29 0x201F1E1D1C1B1A19, 0x2827262524232221, },
30 { 0x11100F0E0D0C0B0A, 0x1918171615141312,
31 0x21201F1E1D1C1B1A, 0x2928272625242322, },
32 { 0x1211100F0E0D0C0B, 0x1A19181716151413,
33 0x2221201F1E1D1C1B, 0x2A29282726252423, },
34 { 0x131211100F0E0D0C, 0x1B1A191817161514,
35 0x232221201F1E1D1C, 0x2B2A292827262524, },
36 { 0x14131211100F0E0D, 0x1C1B1A1918171615,
37 0x24232221201F1E1D, 0x2C2B2A2928272625, },
38 { 0x1514131211100F0E, 0x1D1C1B1A19181716,
39 0x2524232221201F1E, 0x2D2C2B2A29282726, },
40 { 0x161514131211100F, 0x1E1D1C1B1A191817,
41 0x262524232221201F, 0x2E2D2C2B2A292827, },
42 #endif
45 asm volatile(
46 "vmovaps 0x000(%0), %%ymm0\n\t"
47 "vmovaps 0x020(%0), %%ymm1\n\t"
48 "vmovaps 0x040(%0), %%ymm2\n\t"
49 "vmovaps 0x060(%0), %%ymm3\n\t"
50 "vmovaps 0x080(%0), %%ymm4\n\t"
51 "vmovaps 0x0A0(%0), %%ymm5\n\t"
52 "vmovaps 0x0C0(%0), %%ymm6\n\t"
53 "vmovaps 0x0E0(%0), %%ymm7\n\t"
54 #if defined(__x86_64__) || defined(_M_X64)
55 "vmovaps 0x100(%0), %%ymm8\n\t"
56 "vmovaps 0x120(%0), %%ymm9\n\t"
57 "vmovaps 0x140(%0), %%ymm10\n\t"
58 "vmovaps 0x160(%0), %%ymm11\n\t"
59 "vmovaps 0x180(%0), %%ymm12\n\t"
60 "vmovaps 0x1A0(%0), %%ymm13\n\t"
61 "vmovaps 0x1C0(%0), %%ymm14\n\t"
62 "vmovaps 0x1E0(%0), %%ymm15\n\t"
63 #endif
64 "\n\t"
65 "int3\n\t"
67 : "b"(ymm)
68 : "%ymm0", "%ymm1", "%ymm2", "%ymm3", "%ymm4", "%ymm5", "%ymm6", "%ymm7"
69 #if defined(__x86_64__) || defined(_M_X64)
70 , "%ymm8", "%ymm9", "%ymm10", "%ymm11", "%ymm12", "%ymm13", "%ymm14",
71 "%ymm15"
72 #endif
75 return 0;