Index: lldb/lit/Register/Inputs/x86-zmm-read.cpp =================================================================== --- /dev/null +++ lldb/lit/Register/Inputs/x86-zmm-read.cpp @@ -0,0 +1,196 @@ +#include + +struct alignas(64) zmm_t { + uint64_t a, b, c, d, e, f, g, h; +}; + +int main() { + zmm_t zmm0 = { 0x020406080A0C0E01, 0x030507090B0D0F00, + 0x838587898B8D8F80, 0x828486888A8C8E81, + 0x424446484A4C4E41, 0x434547494B4D4F40, + 0xC3C5C7C9CBCDCFC0, 0xC2C4C6C8CACCCEC1 }; + zmm_t zmm1 = { 0x121416181A1C1E11, 0x131517191B1D1F10, + 0x939597999B9D9F90, 0x929496989A9C9E91, + 0x525456585A5C5E51, 0x535557595B5D5F50, + 0xD3D5D7D9DBDDDFD0, 0xD2D4D6D8DADCDED1 }; + zmm_t zmm2 = { 0x222426282A2C2E21, 0x232527292B2D2F20, + 0xA3A5A7A9ABADAFA0, 0xA2A4A6A8AAACAEA1, + 0x626466686A6C6E61, 0x636567696B6D6F60, + 0xE3E5E7E9EBEDEFE0, 0xE2E4E6E8EAECEEE1 }; + zmm_t zmm3 = { 0x323436383A3C3E31, 0x333537393B3D3F30, + 0xB3B5B7B9BBBDBFB0, 0xB2B4B6B8BABCBEB1, + 0x727476787A7C7E71, 0x737577797B7D7F70, + 0xF3F5F7F9FBFDFFF0, 0xF2F4F6F8FAFCFEF1 }; + zmm_t zmm4 = { 0x424446484A4C4E41, 0x434547494B4D4F40, + 0xC3C5C7C9CBCDCFC0, 0xC2C4C6C8CACCCEC1, + 0x828486888A8C8E81, 0x838587898B8D8F80, + 0x030507090B0D0F00, 0x020406080A0C0E01 }; + zmm_t zmm5 = { 0x525456585A5C5E51, 0x535557595B5D5F50, + 0xD3D5D7D9DBDDDFD0, 0xD2D4D6D8DADCDED1, + 0x929496989A9C9E91, 0x939597999B9D9F90, + 0x131517191B1D1F10, 0x121416181A1C1E11 }; + zmm_t zmm6 = { 0x626466686A6C6E61, 0x636567696B6D6F60, + 0xE3E5E7E9EBEDEFE0, 0xE2E4E6E8EAECEEE1, + 0xA2A4A6A8AAACAEA1, 0xA3A5A7A9ABADAFA0, + 0x232527292B2D2F20, 0x222426282A2C2E21 }; + zmm_t zmm7 = { 0x727476787A7C7E71, 0x737577797B7D7F70, + 0xF3F5F7F9FBFDFFF0, 0xF2F4F6F8FAFCFEF1, + 0xB2B4B6B8BABCBEB1, 0xB3B5B7B9BBBDBFB0, + 0x333537393B3D3F30, 0x323436383A3C3E31 }; +#if defined(__x86_64__) || defined(_M_X64) + zmm_t zmm8 = { 0x828486888A8C8E81, 0x838587898B8D8F80, + 0x030507090B0D0F00, 0x020406080A0C0E01, + 0xC2C4C6C8CACCCEC1, 0xC3C5C7C9CBCDCFC0, + 0x434547494B4D4F40, 0x424446484A4C4E41 }; + zmm_t zmm9 = { 0x929496989A9C9E91, 0x939597999B9D9F90, + 0x131517191B1D1F10, 0x121416181A1C1E11, + 0xD2D4D6D8DADCDED1, 0xD3D5D7D9DBDDDFD0, + 0x535557595B5D5F50, 0x525456585A5C5E51 }; + zmm_t zmm10 = { 0xA2A4A6A8AAACAEA1, 0xA3A5A7A9ABADAFA0, + 0x232527292B2D2F20, 0x222426282A2C2E21, + 0xE2E4E6E8EAECEEE1, 0xE3E5E7E9EBEDEFE0, + 0x636567696B6D6F60, 0x626466686A6C6E61 }; + zmm_t zmm11 = { 0xB2B4B6B8BABCBEB1, 0xB3B5B7B9BBBDBFB0, + 0x333537393B3D3F30, 0x323436383A3C3E31, + 0xF2F4F6F8FAFCFEF1, 0xF3F5F7F9FBFDFFF0, + 0x737577797B7D7F70, 0x727476787A7C7E71 }; + zmm_t zmm12 = { 0xC2C4C6C8CACCCEC1, 0xC3C5C7C9CBCDCFC0, + 0x434547494B4D4F40, 0x424446484A4C4E41, + 0x020406080A0C0E01, 0x030507090B0D0F00, + 0x838587898B8D8F80, 0x828486888A8C8E81 }; + zmm_t zmm13 = { 0xD2D4D6D8DADCDED1, 0xD3D5D7D9DBDDDFD0, + 0x535557595B5D5F50, 0x525456585A5C5E51, + 0x121416181A1C1E11, 0x131517191B1D1F10, + 0x939597999B9D9F90, 0x929496989A9C9E91 }; + zmm_t zmm14 = { 0xE2E4E6E8EAECEEE1, 0xE3E5E7E9EBEDEFE0, + 0x636567696B6D6F60, 0x626466686A6C6E61, + 0x222426282A2C2E21, 0x232527292B2D2F20, + 0xA3A5A7A9ABADAFA0, 0xA2A4A6A8AAACAEA1 }; + zmm_t zmm15 = { 0xF2F4F6F8FAFCFEF1, 0xF3F5F7F9FBFDFFF0, + 0x737577797B7D7F70, 0x727476787A7C7E71, + 0x323436383A3C3E31, 0x333537393B3D3F30, + 0xB3B5B7B9BBBDBFB0, 0xB2B4B6B8BABCBEB1 }; + zmm_t zmm16 = { 0x030507090B0D0F00, 0x020406080A0C0E01, + 0x828486888A8C8E81, 0x838587898B8D8F80, + 0x434547494B4D4F40, 0x424446484A4C4E41, + 0xC2C4C6C8CACCCEC1, 0xC3C5C7C9CBCDCFC0 }; + zmm_t zmm17 = { 0x131517191B1D1F10, 0x121416181A1C1E11, + 0x929496989A9C9E91, 0x939597999B9D9F90, + 0x535557595B5D5F50, 0x525456585A5C5E51, + 0xD2D4D6D8DADCDED1, 0xD3D5D7D9DBDDDFD0 }; + zmm_t zmm18 = { 0x232527292B2D2F20, 0x222426282A2C2E21, + 0xA2A4A6A8AAACAEA1, 0xA3A5A7A9ABADAFA0, + 0x636567696B6D6F60, 0x626466686A6C6E61, + 0xE2E4E6E8EAECEEE1, 0xE3E5E7E9EBEDEFE0 }; + zmm_t zmm19 = { 0x333537393B3D3F30, 0x323436383A3C3E31, + 0xB2B4B6B8BABCBEB1, 0xB3B5B7B9BBBDBFB0, + 0x737577797B7D7F70, 0x727476787A7C7E71, + 0xF2F4F6F8FAFCFEF1, 0xF3F5F7F9FBFDFFF0 }; + zmm_t zmm20 = { 0x434547494B4D4F40, 0x424446484A4C4E41, + 0xC2C4C6C8CACCCEC1, 0xC3C5C7C9CBCDCFC0, + 0x838587898B8D8F80, 0x828486888A8C8E81, + 0x020406080A0C0E01, 0x030507090B0D0F00 }; + zmm_t zmm21 = { 0x535557595B5D5F50, 0x525456585A5C5E51, + 0xD2D4D6D8DADCDED1, 0xD3D5D7D9DBDDDFD0, + 0x939597999B9D9F90, 0x929496989A9C9E91, + 0x121416181A1C1E11, 0x131517191B1D1F10 }; + zmm_t zmm22 = { 0x636567696B6D6F60, 0x626466686A6C6E61, + 0xE2E4E6E8EAECEEE1, 0xE3E5E7E9EBEDEFE0, + 0xA3A5A7A9ABADAFA0, 0xA2A4A6A8AAACAEA1, + 0x222426282A2C2E21, 0x232527292B2D2F20 }; + zmm_t zmm23 = { 0x737577797B7D7F70, 0x727476787A7C7E71, + 0xF2F4F6F8FAFCFEF1, 0xF3F5F7F9FBFDFFF0, + 0xB3B5B7B9BBBDBFB0, 0xB2B4B6B8BABCBEB1, + 0x323436383A3C3E31, 0x333537393B3D3F30 }; + zmm_t zmm24 = { 0x838587898B8D8F80, 0x828486888A8C8E81, + 0x020406080A0C0E01, 0x030507090B0D0F00, + 0xC3C5C7C9CBCDCFC0, 0xC2C4C6C8CACCCEC1, + 0x424446484A4C4E41, 0x434547494B4D4F40 }; + zmm_t zmm25 = { 0x939597999B9D9F90, 0x929496989A9C9E91, + 0x121416181A1C1E11, 0x131517191B1D1F10, + 0xD3D5D7D9DBDDDFD0, 0xD2D4D6D8DADCDED1, + 0x525456585A5C5E51, 0x535557595B5D5F50 }; + zmm_t zmm26 = { 0xA3A5A7A9ABADAFA0, 0xA2A4A6A8AAACAEA1, + 0x222426282A2C2E21, 0x232527292B2D2F20, + 0xE3E5E7E9EBEDEFE0, 0xE2E4E6E8EAECEEE1, + 0x626466686A6C6E61, 0x636567696B6D6F60 }; + zmm_t zmm27 = { 0xB3B5B7B9BBBDBFB0, 0xB2B4B6B8BABCBEB1, + 0x323436383A3C3E31, 0x333537393B3D3F30, + 0xF3F5F7F9FBFDFFF0, 0xF2F4F6F8FAFCFEF1, + 0x727476787A7C7E71, 0x737577797B7D7F70 }; + zmm_t zmm28 = { 0xC3C5C7C9CBCDCFC0, 0xC2C4C6C8CACCCEC1, + 0x424446484A4C4E41, 0x434547494B4D4F40, + 0x030507090B0D0F00, 0x020406080A0C0E01, + 0x828486888A8C8E81, 0x838587898B8D8F80 }; + zmm_t zmm29 = { 0xD3D5D7D9DBDDDFD0, 0xD2D4D6D8DADCDED1, + 0x525456585A5C5E51, 0x535557595B5D5F50, + 0x131517191B1D1F10, 0x121416181A1C1E11, + 0x929496989A9C9E91, 0x939597999B9D9F90 }; + zmm_t zmm30 = { 0xE3E5E7E9EBEDEFE0, 0xE2E4E6E8EAECEEE1, + 0x626466686A6C6E61, 0x636567696B6D6F60, + 0x232527292B2D2F20, 0x222426282A2C2E21, + 0xA2A4A6A8AAACAEA1, 0xA3A5A7A9ABADAFA0 }; + zmm_t zmm31 = { 0xF3F5F7F9FBFDFFF0, 0xF2F4F6F8FAFCFEF1, + 0x727476787A7C7E71, 0x737577797B7D7F70, + 0x333537393B3D3F30, 0x323436383A3C3E31, + 0xB2B4B6B8BABCBEB1, 0xB3B5B7B9BBBDBFB0 }; +#endif + + asm volatile( + "vmovaps %0, %%zmm0\n\t" + "vmovaps %1, %%zmm1\n\t" + "vmovaps %2, %%zmm2\n\t" + "vmovaps %3, %%zmm3\n\t" + "vmovaps %4, %%zmm4\n\t" + "vmovaps %5, %%zmm5\n\t" + "vmovaps %6, %%zmm6\n\t" + "vmovaps %7, %%zmm7\n\t" +#if defined(__x86_64__) || defined(_M_X64) + "vmovaps %8, %%zmm8\n\t" + "vmovaps %9, %%zmm9\n\t" + "vmovaps %10, %%zmm10\n\t" + "vmovaps %11, %%zmm11\n\t" + "vmovaps %12, %%zmm12\n\t" + "vmovaps %13, %%zmm13\n\t" + "vmovaps %14, %%zmm14\n\t" + "vmovaps %15, %%zmm15\n\t" + "vmovaps %16, %%zmm16\n\t" + "vmovaps %17, %%zmm17\n\t" + "vmovaps %18, %%zmm18\n\t" + "vmovaps %19, %%zmm19\n\t" + "vmovaps %20, %%zmm20\n\t" + "vmovaps %21, %%zmm21\n\t" + "vmovaps %22, %%zmm22\n\t" + "vmovaps %23, %%zmm23\n\t" + "vmovaps %24, %%zmm24\n\t" + "vmovaps %25, %%zmm25\n\t" + "vmovaps %26, %%zmm26\n\t" + "vmovaps %27, %%zmm27\n\t" + "vmovaps %28, %%zmm28\n\t" + "vmovaps %29, %%zmm29\n\t" + "vmovaps %30, %%zmm30\n\t" + "vmovaps %31, %%zmm31\n\t" +#endif + "\n\t" + "int3" + : + : "m"(zmm0), "m"(zmm1), "m"(zmm2), "m"(zmm3), "m"(zmm4), "m"(zmm5), + "m"(zmm6), "m"(zmm7) +#if defined(__x86_64__) || defined(_M_X64) + , "m"(zmm8), "m"(zmm9), "m"(zmm10), "m"(zmm11), + "m"(zmm12), "m"(zmm13), "m"(zmm14), "m"(zmm15), "m"(zmm16), "m"(zmm17), + "m"(zmm18), "m"(zmm19), "m"(zmm20), "m"(zmm21), "m"(zmm22), "m"(zmm23), + "m"(zmm24), "m"(zmm25), "m"(zmm26), "m"(zmm27), "m"(zmm28), "m"(zmm29), + "m"(zmm30), "m"(zmm31) +#endif + : "%zmm0", "%zmm1", "%zmm2", "%zmm3", "%zmm4", "%zmm5", "%zmm6", "%zmm7" +#if defined(__x86_64__) || defined(_M_X64) + , "%zmm8", "%zmm9", "%zmm10", "%zmm11", "%zmm12", "%zmm13", "%zmm14", + "%zmm15", "%zmm16", "%zmm17", "%zmm18", "%zmm19", "%zmm20", "%zmm21", + "%zmm22", "%zmm23", "%zmm24", "%zmm25", "%zmm26", "%zmm27", "%zmm28", + "%zmm29", "%zmm30", "%zmm31" +#endif + ); + + return 0; +} Index: lldb/lit/Register/x86-64-zmm-read.test =================================================================== --- /dev/null +++ lldb/lit/Register/x86-64-zmm-read.test @@ -0,0 +1,103 @@ +# XFAIL: system-windows +# REQUIRES: native && target-x86_64 && native-cpu-avx512f +# RUN: %clangxx %p/Inputs/x86-zmm-read.cpp -o %t +# RUN: %lldb -b -s %s %t | FileCheck %s +process launch + +register read --all +# CHECK-DAG: xmm0 = {0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03} +# CHECK-DAG: xmm1 = {0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13} +# CHECK-DAG: xmm2 = {0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23} +# CHECK-DAG: xmm3 = {0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33} +# CHECK-DAG: xmm4 = {0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43} +# CHECK-DAG: xmm5 = {0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53} +# CHECK-DAG: xmm6 = {0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63} +# CHECK-DAG: xmm7 = {0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73} +# CHECK-DAG: xmm8 = {0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83} +# CHECK-DAG: xmm9 = {0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93} +# CHECK-DAG: xmm10 = {0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3} +# CHECK-DAG: xmm11 = {0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3} +# CHECK-DAG: xmm12 = {0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3} +# CHECK-DAG: xmm13 = {0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3} +# CHECK-DAG: xmm14 = {0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3} +# CHECK-DAG: xmm15 = {0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3} +# CHECK-DAG: xmm16 = {0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02} +# CHECK-DAG: xmm17 = {0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12} +# CHECK-DAG: xmm18 = {0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22} +# CHECK-DAG: xmm19 = {0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32} +# CHECK-DAG: xmm20 = {0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42} +# CHECK-DAG: xmm21 = {0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52} +# CHECK-DAG: xmm22 = {0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62} +# CHECK-DAG: xmm23 = {0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72} +# CHECK-DAG: xmm24 = {0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82} +# CHECK-DAG: xmm25 = {0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92} +# CHECK-DAG: xmm26 = {0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2} +# CHECK-DAG: xmm27 = {0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2} +# CHECK-DAG: xmm28 = {0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2} +# CHECK-DAG: xmm29 = {0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2} +# CHECK-DAG: xmm30 = {0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2} +# CHECK-DAG: xmm31 = {0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2} +# CHECK-DAG: ymm0 = {0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82} +# CHECK-DAG: ymm1 = {0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92} +# CHECK-DAG: ymm2 = {0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2} +# CHECK-DAG: ymm3 = {0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2} +# CHECK-DAG: ymm4 = {0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2} +# CHECK-DAG: ymm5 = {0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2} +# CHECK-DAG: ymm6 = {0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2} +# CHECK-DAG: ymm7 = {0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2} +# CHECK-DAG: ymm8 = {0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02} +# CHECK-DAG: ymm9 = {0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12} +# CHECK-DAG: ymm10 = {0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22} +# CHECK-DAG: ymm11 = {0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32} +# CHECK-DAG: ymm12 = {0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42} +# CHECK-DAG: ymm13 = {0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52} +# CHECK-DAG: ymm14 = {0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62} +# CHECK-DAG: ymm15 = {0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72} +# CHECK-DAG: ymm16 = {0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83} +# CHECK-DAG: ymm17 = {0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93} +# CHECK-DAG: ymm18 = {0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3} +# CHECK-DAG: ymm19 = {0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3} +# CHECK-DAG: ymm20 = {0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3} +# CHECK-DAG: ymm21 = {0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3} +# CHECK-DAG: ymm22 = {0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3} +# CHECK-DAG: ymm23 = {0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3} +# CHECK-DAG: ymm24 = {0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03} +# CHECK-DAG: ymm25 = {0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13} +# CHECK-DAG: ymm26 = {0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23} +# CHECK-DAG: ymm27 = {0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33} +# CHECK-DAG: ymm28 = {0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43} +# CHECK-DAG: ymm29 = {0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53} +# CHECK-DAG: ymm30 = {0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63} +# CHECK-DAG: ymm31 = {0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73} +# CHECK-DAG: zmm0 = {0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2} +# CHECK-DAG: zmm1 = {0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2} +# CHECK-DAG: zmm2 = {0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2} +# CHECK-DAG: zmm3 = {0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2} +# CHECK-DAG: zmm4 = {0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02} +# CHECK-DAG: zmm5 = {0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12} +# CHECK-DAG: zmm6 = {0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22} +# CHECK-DAG: zmm7 = {0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32} +# CHECK-DAG: zmm8 = {0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42} +# CHECK-DAG: zmm9 = {0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52} +# CHECK-DAG: zmm10 = {0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62} +# CHECK-DAG: zmm11 = {0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72} +# CHECK-DAG: zmm12 = {0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82} +# CHECK-DAG: zmm13 = {0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92} +# CHECK-DAG: zmm14 = {0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2} +# CHECK-DAG: zmm15 = {0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2} +# CHECK-DAG: zmm16 = {0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3} +# CHECK-DAG: zmm17 = {0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3} +# CHECK-DAG: zmm18 = {0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3} +# CHECK-DAG: zmm19 = {0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3} +# CHECK-DAG: zmm20 = {0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03} +# CHECK-DAG: zmm21 = {0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13} +# CHECK-DAG: zmm22 = {0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23} +# CHECK-DAG: zmm23 = {0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33} +# CHECK-DAG: zmm24 = {0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43} +# CHECK-DAG: zmm25 = {0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53} +# CHECK-DAG: zmm26 = {0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63} +# CHECK-DAG: zmm27 = {0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73} +# CHECK-DAG: zmm28 = {0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83} +# CHECK-DAG: zmm29 = {0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93} +# CHECK-DAG: zmm30 = {0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3} +# CHECK-DAG: zmm31 = {0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3} Index: lldb/lit/Register/x86-zmm-read.test =================================================================== --- /dev/null +++ lldb/lit/Register/x86-zmm-read.test @@ -0,0 +1,31 @@ +# XFAIL: system-windows +# REQUIRES: native && target-x86 && native-cpu-avx512f +# RUN: %clangxx %p/Inputs/x86-zmm-read.cpp -o %t +# RUN: %lldb -b -s %s %t | FileCheck %s +process launch + +register read --all +# CHECK-DAG: xmm0 = {0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03} +# CHECK-DAG: xmm1 = {0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13} +# CHECK-DAG: xmm2 = {0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23} +# CHECK-DAG: xmm3 = {0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33} +# CHECK-DAG: xmm4 = {0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43} +# CHECK-DAG: xmm5 = {0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53} +# CHECK-DAG: xmm6 = {0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63} +# CHECK-DAG: xmm7 = {0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73} +# CHECK-DAG: ymm0 = {0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82} +# CHECK-DAG: ymm1 = {0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92} +# CHECK-DAG: ymm2 = {0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2} +# CHECK-DAG: ymm3 = {0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2} +# CHECK-DAG: ymm4 = {0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2} +# CHECK-DAG: ymm5 = {0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2} +# CHECK-DAG: ymm6 = {0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2} +# CHECK-DAG: ymm7 = {0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2} +# CHECK-DAG: zmm0 = {0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2} +# CHECK-DAG: zmm1 = {0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2} +# CHECK-DAG: zmm2 = {0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2} +# CHECK-DAG: zmm3 = {0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2} +# CHECK-DAG: zmm4 = {0x41 0x4e 0x4c 0x4a 0x48 0x46 0x44 0x42 0x40 0x4f 0x4d 0x4b 0x49 0x47 0x45 0x43 0xc0 0xcf 0xcd 0xcb 0xc9 0xc7 0xc5 0xc3 0xc1 0xce 0xcc 0xca 0xc8 0xc6 0xc4 0xc2 0x81 0x8e 0x8c 0x8a 0x88 0x86 0x84 0x82 0x80 0x8f 0x8d 0x8b 0x89 0x87 0x85 0x83 0x00 0x0f 0x0d 0x0b 0x09 0x07 0x05 0x03 0x01 0x0e 0x0c 0x0a 0x08 0x06 0x04 0x02} +# CHECK-DAG: zmm5 = {0x51 0x5e 0x5c 0x5a 0x58 0x56 0x54 0x52 0x50 0x5f 0x5d 0x5b 0x59 0x57 0x55 0x53 0xd0 0xdf 0xdd 0xdb 0xd9 0xd7 0xd5 0xd3 0xd1 0xde 0xdc 0xda 0xd8 0xd6 0xd4 0xd2 0x91 0x9e 0x9c 0x9a 0x98 0x96 0x94 0x92 0x90 0x9f 0x9d 0x9b 0x99 0x97 0x95 0x93 0x10 0x1f 0x1d 0x1b 0x19 0x17 0x15 0x13 0x11 0x1e 0x1c 0x1a 0x18 0x16 0x14 0x12} +# CHECK-DAG: zmm6 = {0x61 0x6e 0x6c 0x6a 0x68 0x66 0x64 0x62 0x60 0x6f 0x6d 0x6b 0x69 0x67 0x65 0x63 0xe0 0xef 0xed 0xeb 0xe9 0xe7 0xe5 0xe3 0xe1 0xee 0xec 0xea 0xe8 0xe6 0xe4 0xe2 0xa1 0xae 0xac 0xaa 0xa8 0xa6 0xa4 0xa2 0xa0 0xaf 0xad 0xab 0xa9 0xa7 0xa5 0xa3 0x20 0x2f 0x2d 0x2b 0x29 0x27 0x25 0x23 0x21 0x2e 0x2c 0x2a 0x28 0x26 0x24 0x22} +# CHECK-DAG: zmm7 = {0x71 0x7e 0x7c 0x7a 0x78 0x76 0x74 0x72 0x70 0x7f 0x7d 0x7b 0x79 0x77 0x75 0x73 0xf0 0xff 0xfd 0xfb 0xf9 0xf7 0xf5 0xf3 0xf1 0xfe 0xfc 0xfa 0xf8 0xf6 0xf4 0xf2 0xb1 0xbe 0xbc 0xba 0xb8 0xb6 0xb4 0xb2 0xb0 0xbf 0xbd 0xbb 0xb9 0xb7 0xb5 0xb3 0x30 0x3f 0x3d 0x3b 0x39 0x37 0x35 0x33 0x31 0x3e 0x3c 0x3a 0x38 0x36 0x34 0x32} Index: lldb/packages/Python/lldbsuite/test/functionalities/register/intel_avx/Makefile =================================================================== --- lldb/packages/Python/lldbsuite/test/functionalities/register/intel_avx/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -LEVEL = ../../../make - -C_SOURCES := main.c - -CFLAGS_EXTRAS ?= -g -O1 - -include $(LEVEL)/Makefile.rules Index: lldb/packages/Python/lldbsuite/test/functionalities/register/intel_avx/TestYMMRegister.py =================================================================== --- lldb/packages/Python/lldbsuite/test/functionalities/register/intel_avx/TestYMMRegister.py +++ /dev/null @@ -1,79 +0,0 @@ -""" -Test that we correctly read the YMM registers. -""" - -from __future__ import print_function - - -import os -import time -import lldb -from lldbsuite.test.decorators import * -from lldbsuite.test.lldbtest import * -from lldbsuite.test import lldbutil - - -class TestYMMRegister(TestBase): - mydir = TestBase.compute_mydir(__file__) - NO_DEBUG_INFO_TESTCASE = True - - @skipIfFreeBSD - @skipIfiOSSimulator - @skipIfTargetAndroid() - @skipIf(archs=no_match(['i386', 'x86_64'])) - @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr37995") - @expectedFailureNetBSD - def test(self): - self.build(dictionary={"CFLAGS_EXTRAS": "-march=haswell"}) - self.setTearDownCleanup() - - exe = self.getBuildArtifact("a.out") - target = self.dbg.CreateTarget(exe) - - self.assertTrue(target, VALID_TARGET) - - byte_pattern1 = 0x80 - byte_pattern2 = 0xFF - - # Launch the process and stop. - self.expect("run", PROCESS_STOPPED, substrs=['stopped']) - - # Check stop reason; Should be either signal SIGTRAP or EXC_BREAKPOINT - output = self.res.GetOutput() - matched = False - substrs = [ - 'stop reason = EXC_BREAKPOINT', - 'stop reason = signal SIGTRAP'] - for str1 in substrs: - matched = output.find(str1) != -1 - with recording(self, False) as sbuf: - print("%s sub string: %s" % ('Expecting', str1), file=sbuf) - print("Matched" if matched else "Not Matched", file=sbuf) - if matched: - break - self.assertTrue(matched, STOPPED_DUE_TO_SIGNAL) - - if self.getArchitecture() == 'x86_64': - register_range = 16 - else: - register_range = 8 - for i in range(register_range): - j = i - ((i // 8) * 8) - self.runCmd("thread step-inst") - - register_byte = (byte_pattern1 | j) - pattern = "ymm" + str(i) + " = " + str('{') + ( - str(hex(register_byte)) + ' ') * 31 + str(hex(register_byte)) + str('}') - - self.expect( - "register read ymm" + str(i), - substrs=[pattern]) - - register_byte = (byte_pattern2 | j) - pattern = "ymm" + str(i) + " = " + str('{') + ( - str(hex(register_byte)) + ' ') * 31 + str(hex(register_byte)) + str('}') - - self.runCmd("thread step-inst") - self.expect( - "register read ymm" + str(i), - substrs=[pattern]) Index: lldb/packages/Python/lldbsuite/test/functionalities/register/intel_avx/TestZMMRegister.py =================================================================== --- lldb/packages/Python/lldbsuite/test/functionalities/register/intel_avx/TestZMMRegister.py +++ /dev/null @@ -1,126 +0,0 @@ -""" -Test that we correctly read the YMM registers. -""" - -from __future__ import print_function - - -import os -import time -import lldb -from lldbsuite.test.decorators import * -from lldbsuite.test.lldbtest import * -from lldbsuite.test import lldbutil - - -class TestYMMRegister(TestBase): - mydir = TestBase.compute_mydir(__file__) - NO_DEBUG_INFO_TESTCASE = True - - @skipUnlessDarwin - @skipIfiOSSimulator - @skipIf(archs=no_match(['i386', 'x86_64'])) - @debugserver_test - @skipUnlessFeature('hw.optional.avx512f') - def test(self): - self.build(dictionary={"CFLAGS_EXTRAS": "-mavx512f"}) - self.setTearDownCleanup() - - exe = self.getBuildArtifact("a.out") - target = self.dbg.CreateTarget(exe) - - self.assertTrue(target, VALID_TARGET) - - byte_pattern1 = 0x80 - byte_pattern2 = 0xFF - - # This test is working with assembly instructions; it'll make - # it easier to debug the console output if the assembly is - # displayed. - self.runCmd("settings set stop-disassembly-display always") - - # Launch the process and stop. - self.expect("run", PROCESS_STOPPED, substrs=['stopped']) - - # Check stop reason; Should be either signal SIGTRAP or EXC_BREAKPOINT - output = self.res.GetOutput() - matched = False - substrs = [ - 'stop reason = EXC_BREAKPOINT', - 'stop reason = signal SIGTRAP'] - for str1 in substrs: - matched = output.find(str1) != -1 - with recording(self, False) as sbuf: - print("%s sub string: %s" % ('Expecting', str1), file=sbuf) - print("Matched" if matched else "Not Matched", file=sbuf) - if matched: - break - self.assertTrue(matched, STOPPED_DUE_TO_SIGNAL) - - if self.getArchitecture() == 'x86_64': - register_range = 16 - else: - register_range = 8 - for i in range(register_range): - j = i - ((i / 8) * 8) - self.runCmd("thread step-inst") - - register_byte = (byte_pattern1 | j) - pattern = "ymm" + str(i) + " = " + str('{') + ( - str(hex(register_byte)) + ' ') * 31 + str(hex(register_byte)) + str('}') - - self.expect( - "register read ymm" + str(i), - substrs=[pattern]) - - register_byte = (byte_pattern2 | j) - pattern = "ymm" + str(i) + " = " + str('{') + ( - str(hex(register_byte)) + ' ') * 31 + str(hex(register_byte)) + str('}') - - self.runCmd("thread step-inst") - self.expect( - "register read ymm" + str(i), - substrs=[pattern]) - - self.expect("continue", PROCESS_STOPPED, substrs=['stopped']) - - # Check stop reason; Should be either signal SIGTRAP or EXC_BREAKPOINT - output = self.res.GetOutput() - matched = False - substrs = [ - 'stop reason = EXC_BREAKPOINT', - 'stop reason = signal SIGTRAP'] - for str1 in substrs: - matched = output.find(str1) != -1 - with recording(self, False) as sbuf: - print("%s sub string: %s" % ('Expecting', str1), file=sbuf) - print("Matched" if matched else "Not Matched", file=sbuf) - if matched: - break - self.assertTrue(matched, STOPPED_DUE_TO_SIGNAL) - - if self.getArchitecture() == 'x86_64': - register_range = 32 - else: - register_range = 8 - for i in range(register_range): - j = i - ((i / 8) * 8) - self.runCmd("thread step-inst") - self.runCmd("thread step-inst") - - register_byte = (byte_pattern2 | j) - pattern = "zmm" + str(i) + " = " + str('{') + ( - str(hex(register_byte)) + ' ') * 63 + str(hex(register_byte)) + str('}') - - self.expect( - "register read zmm" + str(i), - substrs=[pattern]) - - register_byte = (byte_pattern2 | j) - pattern = "zmm" + str(i) + " = " + str('{') + ( - str(hex(register_byte)) + ' ') * 63 + str(hex(register_byte)) + str('}') - - self.runCmd("thread step-inst") - self.expect( - "register read zmm" + str(i), - substrs=[pattern]) Index: lldb/packages/Python/lldbsuite/test/functionalities/register/intel_avx/main.c =================================================================== --- lldb/packages/Python/lldbsuite/test/functionalities/register/intel_avx/main.c +++ /dev/null @@ -1,142 +0,0 @@ -//===-- main.c ------------------------------------------------*- C -*-===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -void func() { - unsigned int ymmvalues[16]; - for (int i = 0 ; i < 16 ; i++) - { - unsigned char val = (0x80 | i); - ymmvalues[i] = (val << 24) | (val << 16) | (val << 8) | val; - } - - unsigned int ymmallones = 0xFFFFFFFF; -#if defined(__AVX__) - __asm__("int3;" - "vbroadcastss %1, %%ymm0;" - "vbroadcastss %0, %%ymm0;" - "vbroadcastss %2, %%ymm1;" - "vbroadcastss %0, %%ymm1;" - "vbroadcastss %3, %%ymm2;" - "vbroadcastss %0, %%ymm2;" - "vbroadcastss %4, %%ymm3;" - "vbroadcastss %0, %%ymm3;" - "vbroadcastss %5, %%ymm4;" - "vbroadcastss %0, %%ymm4;" - "vbroadcastss %6, %%ymm5;" - "vbroadcastss %0, %%ymm5;" - "vbroadcastss %7, %%ymm6;" - "vbroadcastss %0, %%ymm6;" - "vbroadcastss %8, %%ymm7;" - "vbroadcastss %0, %%ymm7;" -#if defined(__x86_64__) - "vbroadcastss %1, %%ymm8;" - "vbroadcastss %0, %%ymm8;" - "vbroadcastss %2, %%ymm9;" - "vbroadcastss %0, %%ymm9;" - "vbroadcastss %3, %%ymm10;" - "vbroadcastss %0, %%ymm10;" - "vbroadcastss %4, %%ymm11;" - "vbroadcastss %0, %%ymm11;" - "vbroadcastss %5, %%ymm12;" - "vbroadcastss %0, %%ymm12;" - "vbroadcastss %6, %%ymm13;" - "vbroadcastss %0, %%ymm13;" - "vbroadcastss %7, %%ymm14;" - "vbroadcastss %0, %%ymm14;" - "vbroadcastss %8, %%ymm15;" - "vbroadcastss %0, %%ymm15;" -#endif - ::"m"(ymmallones), - "m"(ymmvalues[0]), "m"(ymmvalues[1]), "m"(ymmvalues[2]), "m"(ymmvalues[3]), - "m"(ymmvalues[4]), "m"(ymmvalues[5]), "m"(ymmvalues[6]), "m"(ymmvalues[7]) - ); -#endif - -#if defined(__AVX512F__) - unsigned int zmmvalues[32]; - for (int i = 0 ; i < 32 ; i++) - { - unsigned char val = (0x80 | i); - zmmvalues[i] = (val << 24) | (val << 16) | (val << 8) | val; - } - - __asm__("int3;" - "vbroadcastss %1, %%zmm0;" - "vbroadcastss %0, %%zmm0;" - "vbroadcastss %2, %%zmm1;" - "vbroadcastss %0, %%zmm1;" - "vbroadcastss %3, %%zmm2;" - "vbroadcastss %0, %%zmm2;" - "vbroadcastss %4, %%zmm3;" - "vbroadcastss %0, %%zmm3;" - "vbroadcastss %5, %%zmm4;" - "vbroadcastss %0, %%zmm4;" - "vbroadcastss %6, %%zmm5;" - "vbroadcastss %0, %%zmm5;" - "vbroadcastss %7, %%zmm6;" - "vbroadcastss %0, %%zmm6;" - "vbroadcastss %8, %%zmm7;" - "vbroadcastss %0, %%zmm7;" -#if defined(__x86_64__) - "vbroadcastss %1, %%zmm8;" - "vbroadcastss %0, %%zmm8;" - "vbroadcastss %2, %%zmm9;" - "vbroadcastss %0, %%zmm9;" - "vbroadcastss %3, %%zmm10;" - "vbroadcastss %0, %%zmm10;" - "vbroadcastss %4, %%zmm11;" - "vbroadcastss %0, %%zmm11;" - "vbroadcastss %5, %%zmm12;" - "vbroadcastss %0, %%zmm12;" - "vbroadcastss %6, %%zmm13;" - "vbroadcastss %0, %%zmm13;" - "vbroadcastss %7, %%zmm14;" - "vbroadcastss %0, %%zmm14;" - "vbroadcastss %8, %%zmm15;" - "vbroadcastss %0, %%zmm15;" - "vbroadcastss %1, %%zmm16;" - "vbroadcastss %0, %%zmm16;" - "vbroadcastss %2, %%zmm17;" - "vbroadcastss %0, %%zmm17;" - "vbroadcastss %3, %%zmm18;" - "vbroadcastss %0, %%zmm18;" - "vbroadcastss %4, %%zmm19;" - "vbroadcastss %0, %%zmm19;" - "vbroadcastss %5, %%zmm20;" - "vbroadcastss %0, %%zmm20;" - "vbroadcastss %6, %%zmm21;" - "vbroadcastss %0, %%zmm21;" - "vbroadcastss %7, %%zmm22;" - "vbroadcastss %0, %%zmm22;" - "vbroadcastss %8, %%zmm23;" - "vbroadcastss %0, %%zmm23;" - "vbroadcastss %1, %%zmm24;" - "vbroadcastss %0, %%zmm24;" - "vbroadcastss %2, %%zmm25;" - "vbroadcastss %0, %%zmm25;" - "vbroadcastss %3, %%zmm26;" - "vbroadcastss %0, %%zmm26;" - "vbroadcastss %4, %%zmm27;" - "vbroadcastss %0, %%zmm27;" - "vbroadcastss %5, %%zmm28;" - "vbroadcastss %0, %%zmm28;" - "vbroadcastss %6, %%zmm29;" - "vbroadcastss %0, %%zmm29;" - "vbroadcastss %7, %%zmm30;" - "vbroadcastss %0, %%zmm30;" - "vbroadcastss %8, %%zmm31;" - "vbroadcastss %0, %%zmm31;" -#endif - ::"m"(ymmallones), - "m"(zmmvalues[0]), "m"(zmmvalues[1]), "m"(zmmvalues[2]), "m"(zmmvalues[3]), - "m"(zmmvalues[4]), "m"(zmmvalues[5]), "m"(zmmvalues[6]), "m"(zmmvalues[7]) - ); -#endif -} - -int main(int argc, char const *argv[]) { func(); } Index: lldb/utils/lit-cpuid/lit-cpuid.cpp =================================================================== --- lldb/utils/lit-cpuid/lit-cpuid.cpp +++ lldb/utils/lit-cpuid/lit-cpuid.cpp @@ -29,6 +29,8 @@ outs() << "sse\n"; if (features["avx"]) outs() << "avx\n"; + if (features["avx512f"]) + outs() << "avx512f\n"; #endif return 0;