diff options
| author | Michael Matz <matz@suse.de> | 2016-07-11 21:11:13 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:08 +0100 |
| commit | 6a5ec8cb3cce7399facad79f0cb1513018220b84 (patch) | |
| tree | 09523ab5e4d07773776b41a2ba5b5192f2a82cbd /tests | |
| parent | d9d029006cc40b22c1555bade4d4048749537c21 (diff) | |
| download | tinycc-6a5ec8cb3cce7399facad79f0cb1513018220b84.tar.gz tinycc-6a5ec8cb3cce7399facad79f0cb1513018220b84.tar.bz2 | |
x86-asm: More opcodes
Some new opcodes and some aliases: ljmp[wl], prefetch{nta,t0,t1,t2},
bswap[lq], sysretq, swapgs.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/asmtest.S | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
