@@ -2387,8 +2387,8 @@
})
(define_insn_and_split "*movdi_64bit"
- [(set (match_operand:DI 0 "nonimmediate_operand" "=r,r,r,w,*f,*f,*r,*m")
- (match_operand:DI 1 "move_operand" "r,Yd,w,rJ,*r*J,*m,*f,*f"))]
+ [(set (match_operand:DI 0 "nonimmediate_operand" "=r,r,r,w,*f,f,*r,*m")
+ (match_operand:DI 1 "move_operand" "r,Yd,w,rJ,*r*J,m,*f,*f"))]
"TARGET_64BIT
&& (register_operand (operands[0], DImode)
|| reg_or_0_operand (operands[1], DImode))"
new file mode 100644
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+/* { dg-final { scan-assembler "fld\\.d" } } */
+/* { dg-final { scan-assembler-not "movgr2fr" } } */
+
+extern long T[1024];
+
+double test (int i, double n)
+{
+ return T[i] * n;
+}