diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-12 01:19:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-12 01:19:22 +0000 |
commit | dfd3626b477a416040fc4c08d5db3bb85d3500d8 (patch) | |
tree | 2a6744be2a9438878813ffb762cfabb302c84b8f /test/Transforms/InstCombine | |
parent | 5a30a8574cbcd3b385b1e8681c6a5c45856efb38 (diff) | |
download | llvm-dfd3626b477a416040fc4c08d5db3bb85d3500d8.tar.gz llvm-dfd3626b477a416040fc4c08d5db3bb85d3500d8.tar.bz2 llvm-dfd3626b477a416040fc4c08d5db3bb85d3500d8.tar.xz |
fix PR7311 by avoiding breaking casts when a bitcast from scalar->vector
is involved.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108117 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r-- | test/Transforms/InstCombine/cast.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index 77fccdfa52..102d2f048f 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -638,3 +638,14 @@ define <4 x i32> @test62(<3 x float> %call4) nounwind { ; CHECK-NEXT: ret } +; PR7311 - Don't create invalid IR on scalar->vector cast. +define <2 x float> @test63(i64 %tmp8) nounwind { +entry: + %a = bitcast i64 %tmp8 to <2 x i32> + %vcvt.i = uitofp <2 x i32> %a to <2 x float> + ret <2 x float> %vcvt.i +; CHECK: @test63 +; CHECK: bitcast +; CHECK: uitofp +} + |