]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86_64: Fix number of operands mismatch for `vdivss'
authorUros Bizjak <ubizjak@gmail.com>
Tue, 23 Sep 2025 06:13:13 +0000 (08:13 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Tue, 23 Sep 2025 06:13:13 +0000 (08:13 +0200)
Fixes commit ff8be6152bcd1048283663aef2da6a458f27832a
('x86: Use "%v" to emit VEX encoded instructions for AVX targets')

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
sysdeps/x86_64/fpu/fraiseexcpt.c

index a97f8f0b9552ae47936a0dc9eef76d6a5eb8ed30..da3a31f4c20c51a37834ac65dc2e573e73aa5bac 100644 (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;
     }