From d2f27ead2d71afeee869cad8ae8a1c1dce7229cb Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Fri, 11 Feb 2011 19:37:55 +0000 Subject: 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 --- test/Transforms/InstCombine/bitcast-vec-uniform.ll | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/Transforms/InstCombine/bitcast-vec-uniform.ll (limited to 'test/Transforms/InstCombine/bitcast-vec-uniform.ll') 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> to <4 x i32> + ret <4 x i32> %c +} + +define <4 x i32> @b(<1 x i64> %y) { + %c = bitcast <2 x i64> to <4 x i32> + ret <4 x i32> %c +} + + + -- cgit v1.2.3