+2015-06-19 Jim Wilson <jim.wilson@linaro.org>
+
+ * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
+ op1 is an fp zero.
+ (movsf_aarch64): Change condition from register_operand to
+ aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
+ load1. Change type for alternative 7 to store1.
+ (movdf_aarch64): Likewise.
+
2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
* config/vax/vax.md: Adjust sign/zero extend patterns to
FAIL;
}
- if (GET_CODE (operands[0]) == MEM)
+ if (GET_CODE (operands[0]) == MEM
+ && ! (GET_CODE (operands[1]) == CONST_DOUBLE
+ && aarch64_float_const_zero_rtx_p (operands[1])))
operands[1] = force_reg (<MODE>mode, operands[1]);
"
)
[(set (match_operand:SF 0 "nonimmediate_operand" "=w, ?r,w,w ,w,m,r,m ,r")
(match_operand:SF 1 "general_operand" "?rY, w,w,Ufc,m,w,m,rY,r"))]
"TARGET_FLOAT && (register_operand (operands[0], SFmode)
- || register_operand (operands[1], SFmode))"
+ || aarch64_reg_or_fp_zero (operands[1], SFmode))"
"@
fmov\\t%s0, %w1
fmov\\t%w0, %s1
str\\t%w1, %0
mov\\t%w0, %w1"
[(set_attr "type" "f_mcr,f_mrc,fmov,fconsts,\
- f_loads,f_stores,f_loads,f_stores,mov_reg")]
+ f_loads,f_stores,load1,store1,mov_reg")]
)
(define_insn "*movdf_aarch64"
[(set (match_operand:DF 0 "nonimmediate_operand" "=w, ?r,w,w ,w,m,r,m ,r")
(match_operand:DF 1 "general_operand" "?rY, w,w,Ufc,m,w,m,rY,r"))]
"TARGET_FLOAT && (register_operand (operands[0], DFmode)
- || register_operand (operands[1], DFmode))"
+ || aarch64_reg_or_fp_zero (operands[1], DFmode))"
"@
fmov\\t%d0, %x1
fmov\\t%x0, %d1
str\\t%x1, %0
mov\\t%x0, %x1"
[(set_attr "type" "f_mcr,f_mrc,fmov,fconstd,\
- f_loadd,f_stored,f_loadd,f_stored,mov_reg")]
+ f_loadd,f_stored,load1,store1,mov_reg")]
)
(define_expand "movtf"
+2015-06-19 Jim Wilson <jim.wilson@linaro.org>
+
+ * gcc.target/aarch64/fmovd-zero-mem.c: New.
+ * gcc.target/aarch64/fmovd-zero-reg.c: New.
+ * gcc.target/aarch64/fmovf-zero-mem.c: New.
+ * gcc.target/aarch64/fmovf-zero-reg.c: New.
+ * gcc.target/aarch64/fmovld-zero-mem.c: New.
+ * gcc.target/aarch64/fmovld-zero-mem.c: New.
+ * gcc.target/aarch64/fmovd-zero.c: Delete.
+ * gcc.target/aarch64/fmovf-zero.c: Delete.
+
2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
* gcc.target/vax/bswapdi-1.c: New.