diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-10-23 00:44:19 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-10-23 00:44:19 +0000 |
commit | 6a2f9b91379140c36a11ade6c0673bd7490eba32 (patch) | |
tree | b18920c632ff2b48e61d4d752f128d35f220963b /lib | |
parent | f9e5c398119a77202dc0f7861f5131a7b9f7b8b3 (diff) | |
download | external_llvm-6a2f9b91379140c36a11ade6c0673bd7490eba32.zip external_llvm-6a2f9b91379140c36a11ade6c0673bd7490eba32.tar.gz external_llvm-6a2f9b91379140c36a11ade6c0673bd7490eba32.tar.bz2 |
R600/SI: Add support for i64 bitwise or
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/R600/SIInstructions.td | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td index 08a8b56..ab6193f 100644 --- a/lib/Target/R600/SIInstructions.td +++ b/lib/Target/R600/SIInstructions.td @@ -1963,6 +1963,25 @@ def : Pat< >; //============================================================================// +// Miscellaneous Patterns +//===----------------------------------------------------------------------===// + +def : Pat < + (i64 (trunc i128:$x)), + (INSERT_SUBREG (INSERT_SUBREG (i64 (IMPLICIT_DEF)), + (i32 (EXTRACT_SUBREG $x, sub0)), sub0), + (i32 (EXTRACT_SUBREG $x, sub1)), sub1) +>; + +def : Pat < + (or i64:$a, i64:$b), + (INSERT_SUBREG + (INSERT_SUBREG (IMPLICIT_DEF), + (V_OR_B32_e32 (EXTRACT_SUBREG $a, sub0), (EXTRACT_SUBREG $b, sub0)), sub0), + (V_OR_B32_e32 (EXTRACT_SUBREG $a, sub1), (EXTRACT_SUBREG $b, sub1)), sub1) +>; + +//============================================================================// // Miscellaneous Optimization Patterns //============================================================================// |