[gcc(refs/users/meissner/heads/work163-dmf)] Add support for XVRL instruction.
Michael Meissner
meissner@gcc.gnu.org
Fri Mar 22 03:39:50 GMT 2024
https://gcc.gnu.org/g:6ff874d066d523bd6b71e2f944f5740f651ed022
commit 6ff874d066d523bd6b71e2f944f5740f651ed022
Author: Michael Meissner <meissner@linux.ibm.com>
Date: Thu Mar 21 23:39:11 2024 -0400
Add support for XVRL instruction.
2024-03-21 Michael Meissner <meissner@linux.ibm.com>
gcc/
* config/rs6000/altivec.md (xvrlw): New insn.
Diff:
---
gcc/config/rs6000/altivec.md | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gcc/config/rs6000/altivec.md b/gcc/config/rs6000/altivec.md
index 4d4c94ff0a0..da5db49d3af 100644
--- a/gcc/config/rs6000/altivec.md
+++ b/gcc/config/rs6000/altivec.md
@@ -1883,6 +1883,17 @@
}
[(set_attr "type" "vecperm")])
+;; Future cpu adds a vector rotate left word variant
+(define_insn "*xvrlw"
+ [(set (match_operand:V4SI 0 "register_operand" "=v,wa")
+ (rotate:V4SI (match_operand:V4SI 1 "register_operand" "v,wa")
+ (match_operand:V4SI 2 "register_operand" "v,wa")))]
+ "TARGET_FUTURE"
+ "@
+ vrlw %0,%1,%2
+ xvrlw %x0,%x1,%x2"
+ [(set_attr "type" "vecsimple")])
+
(define_insn "altivec_vrl<VI_char>"
[(set (match_operand:VI2 0 "register_operand" "=v")
(rotate:VI2 (match_operand:VI2 1 "register_operand" "v")
More information about the Gcc-cvs
mailing list