diff options
| author | Mon P Wang <wangmp@apple.com> | 2008-12-09 05:46:39 +0000 |
|---|---|---|
| committer | Mon P Wang <wangmp@apple.com> | 2008-12-09 05:46:39 +0000 |
| commit | 4dd832d24133612f09af3c4fb0d36e63fb5ee6f3 (patch) | |
| tree | 3be72357a03ee634d44ec7082cacfc153b6900eb /llvm/test/CodeGen/X86/vshift_split.ll | |
| parent | 56b20ffc5facbc5222992b1216ba416c038aaf22 (diff) | |
| download | bcm5719-llvm-4dd832d24133612f09af3c4fb0d36e63fb5ee6f3.tar.gz bcm5719-llvm-4dd832d24133612f09af3c4fb0d36e63fb5ee6f3.zip | |
Fix getNode to allow a vector for the shift amount for shifts of vectors.
Fix the shift amount when unrolling a vector shift into scalar shifts.
Fix problem in getShuffleScalarElt where it assumes that the input of
a bit convert must be a vector.
llvm-svn: 60740
Diffstat (limited to 'llvm/test/CodeGen/X86/vshift_split.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/vshift_split.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/vshift_split.ll b/llvm/test/CodeGen/X86/vshift_split.ll new file mode 100644 index 00000000000..8f485ddd9a6 --- /dev/null +++ b/llvm/test/CodeGen/X86/vshift_split.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llc + +; Example that requires splitting and expanding a vector shift. +define <2 x i64> @update(<2 x i64> %val) nounwind readnone { +entry: + %shr = lshr <2 x i64> %val, < i64 2, i64 2 > ; <<2 x i64>> [#uses=1] + ret <2 x i64> %shr +} |

