diff options
| author | Michael Matz <matz@suse.de> | 2016-07-11 19:57:39 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:08 +0100 |
| commit | d9d029006cc40b22c1555bade4d4048749537c21 (patch) | |
| tree | 460d393a5052dcdd859fd5bfdd8e96d2c432a109 /tests | |
| parent | 75e8df126f8ec9905a6630e5619f74589eb38509 (diff) | |
| download | tinycc-d9d029006cc40b22c1555bade4d4048749537c21.tar.gz tinycc-d9d029006cc40b22c1555bade4d4048749537c21.tar.bz2 | |
x86-asm: Add [sl][ig]dtq opcodes
GAS has alias lgdtq for lgdt (similar for saves and GDT). It doesn't
have the same for LDT.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/asmtest.S | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/asmtest.S b/tests/asmtest.S index aed99ed..c9c9a70 100644 --- a/tests/asmtest.S +++ b/tests/asmtest.S @@ -672,13 +672,19 @@ int $0x10 lgdt 0x1000 lidt 0x1000 lldt 0x1000 - lmsw 0x1000 - lsl 0x1000, %ecx - ltr 0x1000 - sgdt 0x1000 sidt 0x1000 sldt 0x1000 +#ifdef __x86_64__ + lgdtq 0x1000 + lidtq 0x1000 + sgdtq 0x1000 + sidtq 0x1000 +#endif + + lmsw 0x1000 + lsl 0x1000, %ecx + ltr 0x1000 smsw 0x1000 str 0x1000 |
