diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-06-07 22:55:05 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-06-07 22:55:05 +0000 |
commit | 7de1d327f134286d8049adc7b06f92447b4bbecd (patch) | |
tree | 6249bb2bebe1dd28ee2d05348f3a4faa0d291d80 /lib/Target/Sparc | |
parent | 1c2b03aae9e56e69d215e9b39928a1340e3ca0c3 (diff) | |
download | external_llvm-7de1d327f134286d8049adc7b06f92447b4bbecd.zip external_llvm-7de1d327f134286d8049adc7b06f92447b4bbecd.tar.gz external_llvm-7de1d327f134286d8049adc7b06f92447b4bbecd.tar.bz2 |
Add missing zextloadi1 to i64 patterns. PR16721.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcInstr64Bit.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/Sparc/SparcInstr64Bit.td b/lib/Target/Sparc/SparcInstr64Bit.td index a37b158..9821ff4 100644 --- a/lib/Target/Sparc/SparcInstr64Bit.td +++ b/lib/Target/Sparc/SparcInstr64Bit.td @@ -239,6 +239,9 @@ def LDXri : F3_2<3, 0b001011, [(set i64:$dst, (load ADDRri:$addr))]>; // Extending loads to i64. +def : Pat<(i64 (zextloadi1 ADDRrr:$addr)), (LDUBrr ADDRrr:$addr)>; +def : Pat<(i64 (zextloadi1 ADDRri:$addr)), (LDUBri ADDRri:$addr)>; + def : Pat<(i64 (zextloadi8 ADDRrr:$addr)), (LDUBrr ADDRrr:$addr)>; def : Pat<(i64 (zextloadi8 ADDRri:$addr)), (LDUBri ADDRri:$addr)>; def : Pat<(i64 (extloadi8 ADDRrr:$addr)), (LDUBrr ADDRrr:$addr)>; |