1# Check 64bit LWP instructions 2 3 .allow_index_reg 4 .text 5_start: 6 7 llwpcb %eax 8 llwpcb %ecx 9 llwpcb %edx 10 llwpcb %ebx 11 llwpcb %esp 12 llwpcb %ebp 13 llwpcb %esi 14 llwpcb %edi 15 16 slwpcb %edi 17 slwpcb %esi 18 slwpcb %ebp 19 slwpcb %esp 20 slwpcb %ebx 21 slwpcb %edx 22 slwpcb %ecx 23 slwpcb %eax 24 25 lwpins $0x12345678, %edi, %eax 26 lwpins $0x12345678, %esi, %ecx 27 lwpins $0x12345678, %ebp, %edx 28 lwpins $0x12345678, %esp, %ebx 29 lwpins $0x12345678, %ebx, %esp 30 lwpins $0x12345678, %edx, %ebp 31 lwpins $0x12345678, %ecx, %esi 32 lwpins $0x12345678, %eax, %edi 33 34 lwpval $0x12345678, %edi, %eax 35 lwpval $0x12345678, %esi, %ecx 36 lwpval $0x12345678, %ebp, %edx 37 lwpval $0x12345678, %esp, %ebx 38 lwpval $0x12345678, %ebx, %esp 39 lwpval $0x12345678, %edx, %ebp 40 lwpval $0x12345678, %ecx, %esi 41 lwpval $0x12345678, %eax, %edi 42 43 lwpins $0x12345678, (%edi), %eax 44 lwpins $0x12345678, (%esi), %ecx 45 lwpins $0x12345678, (%ebp), %edx 46 lwpins $0x12345678, (%esp), %ebx 47 lwpins $0x12345678, (%ebx), %esp 48 lwpins $0x12345678, (%edx), %ebp 49 lwpins $0x12345678, (%ecx), %esi 50 lwpins $0x12345678, (%eax), %edi 51 52 lwpval $0x12345678, (%edi), %eax 53 lwpval $0x12345678, (%esi), %ecx 54 lwpval $0x12345678, (%ebp), %edx 55 lwpval $0x12345678, (%esp), %ebx 56 lwpval $0x12345678, (%ebx), %esp 57 lwpval $0x12345678, (%edx), %ebp 58 lwpval $0x12345678, (%ecx), %esi 59 lwpval $0x12345678, (%eax), %edi 60 61 lwpins $0x12345678, 0xcafe(%edi), %eax 62 lwpins $0x12345678, 0xcafe(%esi), %ecx 63 lwpins $0x12345678, 0xcafe(%ebp), %edx 64 lwpins $0x12345678, 0xcafe(%esp), %ebx 65 lwpins $0x12345678, 0xcafe(%ebx), %esp 66 lwpins $0x12345678, 0xcafe(%edx), %ebp 67 lwpins $0x12345678, 0xcafe(%ecx), %esi 68 lwpins $0x12345678, 0xcafe(%eax), %edi 69 70 lwpval $0x12345678, 0xcafe(%edi), %eax 71 lwpval $0x12345678, 0xcafe(%esi), %ecx 72 lwpval $0x12345678, 0xcafe(%ebp), %edx 73 lwpval $0x12345678, 0xcafe(%esp), %ebx 74 lwpval $0x12345678, 0xcafe(%ebx), %esp 75 lwpval $0x12345678, 0xcafe(%edx), %ebp 76 lwpval $0x12345678, 0xcafe(%ecx), %esi 77 lwpval $0x12345678, 0xcafe(%eax), %edi 78