From 5692716770e9e2e733d0e7ab6ce0bd70cb830aba Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 11 Jul 2016 21:41:15 +0200 Subject: x86-asm: Fix lar opcode operands lar can accept multiple sizes as well (wlx), like lsl. When using autosize it's important to look at the destination operand first; when it's a register that one determines the size, not the input operand. --- tests/asmtest.S | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/asmtest.S b/tests/asmtest.S index ebc17fc..0bbd764 100644 --- a/tests/asmtest.S +++ b/tests/asmtest.S @@ -625,8 +625,15 @@ int $0x10 clflush 0x1000(%rax,%rcx) fxsaveq (%rdx) fxrstorq (%rcx) + #endif + lar %ax,%dx + lar %eax,%dx + lar %ax,%edx + lar %eax,%edx + lar %ax,%rdx + lar %eax,%rdx emms movd %edx, %mm3 movd 0x1000, %mm2 -- cgit v1.3.1