Skip to content
  • Tamar Christina's avatar
    Allow integer immediates for AArch64 fmov instructions. · 66881839
    Tamar Christina authored
    This patch makes it possible to use an integer immediate with the fmov instructions
    allowing you to simply write fmov d0, #2 instead of needing fmov d0, #2.0.
    
    The parse double function already know to deal with this so we just need to list the
    restriction put in place in parser.
    
    The is considered a QoL improvement for hand assembly writers and allows more
    code portability between assembler.
    
    gas/
    
    	* config/tc-aarch64.c (parse_aarch64_imm_float): Remove restrictions.
    	* testsuite/gas/aarch64/diagnostic.s: Move fmov int test to..
    	* testsuite/gas/aarch64/fpmov.s: Here.
    	* testsuite/gas/aarch64/fpmov.d: Update results with fmov.
    	* testsuite/gas/aarch64/diagnostic.l: Remove fmov values.
    	* testsuite/gas/aarch64/sve-invalid.s: Update test files.
    	* testsuite/gas/aarch64/sve-invalid.l: Likewise
    66881839