comparison gcc/config/mips/mips-ps-3d.md @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 ;; MIPS Paired-Single Floating and MIPS-3D Instructions. 1 ;; MIPS Paired-Single Floating and MIPS-3D Instructions.
2 ;; Copyright (C) 2004-2017 Free Software Foundation, Inc. 2 ;; Copyright (C) 2004-2018 Free Software Foundation, Inc.
3 ;; 3 ;;
4 ;; This file is part of GCC. 4 ;; This file is part of GCC.
5 ;; 5 ;;
6 ;; GCC is free software; you can redistribute it and/or modify 6 ;; GCC is free software; you can redistribute it and/or modify
7 ;; it under the terms of the GNU General Public License as published by 7 ;; it under the terms of the GNU General Public License as published by
162 return mnemonics[BYTES_BIG_ENDIAN][mask]; 162 return mnemonics[BYTES_BIG_ENDIAN][mask];
163 } 163 }
164 [(set_attr "type" "fmove") 164 [(set_attr "type" "fmove")
165 (set_attr "mode" "SF")]) 165 (set_attr "mode" "SF")])
166 166
167 (define_expand "vec_perm_constv2sf"
168 [(match_operand:V2SF 0 "register_operand" "")
169 (match_operand:V2SF 1 "register_operand" "")
170 (match_operand:V2SF 2 "register_operand" "")
171 (match_operand:V2SI 3 "" "")]
172 "TARGET_HARD_FLOAT && TARGET_PAIRED_SINGLE_FLOAT"
173 {
174 if (mips_expand_vec_perm_const (operands))
175 DONE;
176 else
177 FAIL;
178 })
179
180 ;; Expanders for builtins. The instruction: 167 ;; Expanders for builtins. The instruction:
181 ;; 168 ;;
182 ;; P[UL][UL].PS <result>, <a>, <b> 169 ;; P[UL][UL].PS <result>, <a>, <b>
183 ;; 170 ;;
184 ;; says that the upper part of <result> is taken from half of <a> and 171 ;; says that the upper part of <result> is taken from half of <a> and