aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2021-08-20 22:52:57 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2021-08-23 13:24:50 +0800
commitf93f0868919ab32bfbc24adb40158298031a4d58 (patch)
tree4986ce90586c766deb6d15c092e3c6532d47e289 /gcc/gimple.c
parent4a4616e53f440e15d0f3e91e23b67a3b5c84dddf (diff)
downloadgcc-f93f0868919ab32bfbc24adb40158298031a4d58.zip
gcc-f93f0868919ab32bfbc24adb40158298031a4d58.tar.gz
gcc-f93f0868919ab32bfbc24adb40158298031a4d58.tar.bz2
mips: msa: truncate immediate shift amount [PR101922]
When -mloongson-mmi is enabled, SHIFT_COUNT_TRUNCATED is turned off. This causes untruncated immediate shift amount outputed into the asm, and the GNU assembler refuses to assemble it. Truncate immediate shift amount when outputing the asm instruction to make GAS happy again. gcc/ PR target/101922 * config/mips/mips-protos.h (mips_msa_output_shift_immediate): Declare. * config/mips/mips.c (mips_msa_output_shift_immediate): New function. * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3, vlshr<mode>3): Call it. gcc/testsuite/ PR target/101922 * gcc.target/mips/pr101922.c: New test.
Diffstat (limited to 'gcc/gimple.c')
0 files changed, 0 insertions, 0 deletions