x86_64: Fix number of operands mismatch for `vdivss'

Fixes commit ff8be6152b
('x86: Use "%v" to emit VEX encoded instructions for AVX targets')

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
This commit is contained in:
Uros Bizjak 2025-09-23 08:13:13 +02:00
parent ff8be6152b
commit b8254a047f
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ __feraiseexcept (int excepts)
/* One example of an invalid operation is 0.0 / 0.0. */
float f = 0.0;
__asm__ __volatile__ ("%vdivss %0, %0 " : "+x" (f));
__asm__ __volatile__ ("%vdivss %0, %d0 " : "+x" (f));
(void) &f;
}
@ -43,7 +43,7 @@ __feraiseexcept (int excepts)
float f = 1.0;
float g = 0.0;
__asm__ __volatile__ ("%vdivss %1, %0" : "+x" (f) : "x" (g));
__asm__ __volatile__ ("%vdivss %1, %d0" : "+x" (f) : "x" (g));
(void) &f;
}