From 6a5ec8cb3cce7399facad79f0cb1513018220b84 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 11 Jul 2016 21:11:13 +0200 Subject: x86-asm: More opcodes Some new opcodes and some aliases: ljmp[wl], prefetch{nta,t0,t1,t2}, bswap[lq], sysretq, swapgs. --- tests/asmtest.S | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') diff --git a/tests/asmtest.S b/tests/asmtest.S index c9c9a70..ebc17fc 100644 --- a/tests/asmtest.S +++ b/tests/asmtest.S @@ -287,6 +287,8 @@ ljmp $0x100, $0x1000 #else ljmp *0x100 ljmp *(%rdi) +ljmpl *(%esi) +ljmpw *(%esi) #endif ret @@ -484,6 +486,7 @@ L3: fwait bswap %edx +bswapl %ecx xadd %ecx, %edx xaddb %dl, 0x1000 xaddw %ax, 0x1000 @@ -515,6 +518,7 @@ fucomip %st(5), %st cmovns %edx, %edi cmovne %ax, %si #ifdef __x86_64__ + bswapq %rsi cmovz %rdi,%rbx #endif @@ -610,9 +614,14 @@ int $0x10 #ifdef __x86_64__ syscall sysret + sysretq lfence mfence sfence + prefetchnta 0x18(%rdx) + prefetcht0 (%rcx) + prefetcht1 (%rsi) + prefetcht2 (%rdi) clflush 0x1000(%rax,%rcx) fxsaveq (%rdx) fxrstorq (%rcx) @@ -680,6 +689,8 @@ int $0x10 lidtq 0x1000 sgdtq 0x1000 sidtq 0x1000 + + swapgs #endif lmsw 0x1000 -- cgit v1.3.1