===================================================================
@@ -83,6 +83,16 @@
/* { dg-final { scan-assembler-times "fcvtzu\tx\[0-9\], d\[0-9\]*.*#4" 1 } } */
/* { dg-final { scan-assembler-times "fcvtzu\tw\[0-9\], d\[0-9\]*.*#4" 1 } } */
+FUNC_DEFS (32)
+FUNC_DEFD (32)
+/* { dg-final { scan-assembler-times "fcvtzs\tw\[0-9\], s\[0-9\]*.*#5" 1 } } */
+/* { dg-final { scan-assembler-times "fcvtzs\tx\[0-9\], s\[0-9\]*.*#5" 1 } } */
+/* { dg-final { scan-assembler-times "fcvtzs\tx\[0-9\], d\[0-9\]*.*#5" 1 } } */
+/* { dg-final { scan-assembler-times "fcvtzs\tw\[0-9\], d\[0-9\]*.*#5" 1 } } */
+/* { dg-final { scan-assembler-times "fcvtzu\tw\[0-9\], s\[0-9\]*.*#5" 1 } } */
+/* { dg-final { scan-assembler-times "fcvtzu\tx\[0-9\], s\[0-9\]*.*#5" 1 } } */
+/* { dg-final { scan-assembler-times "fcvtzu\tx\[0-9\], d\[0-9\]*.*#5" 1 } } */
+/* { dg-final { scan-assembler-times "fcvtzu\tw\[0-9\], d\[0-9\]*.*#5" 1 } } */
#define FUNC_TESTS(__a, __b) \
do \
@@ -120,10 +130,12 @@
FUNC_TESTS (4, i);
FUNC_TESTS (8, i);
FUNC_TESTS (16, i);
+ FUNC_TESTS (32, i);
FUNC_TESTD (4, i);
FUNC_TESTD (8, i);
FUNC_TESTD (16, i);
+ FUNC_TESTD (32, i);
}
return 0;
}
===================================================================
@@ -2001,7 +2001,17 @@
tem = simplify_const_binary_operation (code, mode, trueop0, trueop1);
if (tem)
return tem;
- return simplify_binary_operation_1 (code, mode, op0, op1, trueop0, trueop1);
+ tem = simplify_binary_operation_1 (code, mode, op0, op1, trueop0, trueop1);
+
+ if (tem)
+ return tem;
+
+ /* If the above steps did not result in a simplification and op0 or op1
+ were constant pool references, use the referenced constants directly. */
+ if (trueop0 != op0 || trueop1 != op1)
+ return simplify_gen_binary (code, mode, trueop0, trueop1);
+
+ return NULL_RTX;
}
/* Subroutine of simplify_binary_operation. Simplify a binary operation