diff options
author | Christian Konig <christian.koenig@amd.com> | 2013-02-16 11:28:36 +0000 |
---|---|---|
committer | Christian Konig <christian.koenig@amd.com> | 2013-02-16 11:28:36 +0000 |
commit | ecc571f063eb0d6a49033fbe85ffbf0db6114f59 (patch) | |
tree | 27741abf68fd21506915fd7070b7245621425d06 /lib/Target/R600/SIInstrInfo.td | |
parent | e9ba1830df2efef3da113a740909195e839ebd36 (diff) | |
download | llvm-ecc571f063eb0d6a49033fbe85ffbf0db6114f59.tar.gz llvm-ecc571f063eb0d6a49033fbe85ffbf0db6114f59.tar.bz2 llvm-ecc571f063eb0d6a49033fbe85ffbf0db6114f59.tar.xz |
R600/SI: Add pattern to simplify i64 loading
This is a candidate for the stable branch.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/SIInstrInfo.td')
-rw-r--r-- | lib/Target/R600/SIInstrInfo.td | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/R600/SIInstrInfo.td b/lib/Target/R600/SIInstrInfo.td index efc6015c68..8c4e5afdeb 100644 --- a/lib/Target/R600/SIInstrInfo.td +++ b/lib/Target/R600/SIInstrInfo.td @@ -40,6 +40,10 @@ def IMM12bit : ImmLeaf < [{return isUInt<12>(Imm);}] >; +class InlineImm <ValueType vt> : ImmLeaf <vt, [{ + return -16 <= Imm && Imm <= 64; +}]>; + class InstSI <dag outs, dag ins, string asm, list<dag> pattern> : AMDGPUInst<outs, ins, asm, pattern> { |