diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2011-02-11 19:37:55 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-02-11 19:37:55 +0000 |
commit | d2f27ead2d71afeee869cad8ae8a1c1dce7229cb (patch) | |
tree | 18e11bf523e403041aeaf6df2b7ff0a83e151121 /test/Transforms/InstCombine/bitcast-vec-uniform.ll | |
parent | 5a4552ca4256461f402f9d7d2511e77c79316907 (diff) | |
download | llvm-d2f27ead2d71afeee869cad8ae8a1c1dce7229cb.tar.gz llvm-d2f27ead2d71afeee869cad8ae8a1c1dce7229cb.tar.bz2 llvm-d2f27ead2d71afeee869cad8ae8a1c1dce7229cb.tar.xz |
Fix 9173.
Add more folding patterns to constant expressions of vector selects and vector
bitcasts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/bitcast-vec-uniform.ll')
-rw-r--r-- | test/Transforms/InstCombine/bitcast-vec-uniform.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/bitcast-vec-uniform.ll b/test/Transforms/InstCombine/bitcast-vec-uniform.ll new file mode 100644 index 0000000000..1fba163269 --- /dev/null +++ b/test/Transforms/InstCombine/bitcast-vec-uniform.ll @@ -0,0 +1,14 @@ +; RUN: opt < %s -instcombine -S | not grep bitcast + +define <4 x i32> @a(<1 x i64> %y) { + %c = bitcast <2 x i64> <i64 0, i64 0> to <4 x i32> + ret <4 x i32> %c +} + +define <4 x i32> @b(<1 x i64> %y) { + %c = bitcast <2 x i64> <i64 -1, i64 -1> to <4 x i32> + ret <4 x i32> %c +} + + + |