aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms
diff options
context:
space:
mode:
authorMichael Ilseman <milseman@apple.com>2013-02-26 22:51:07 +0000
committerMichael Ilseman <milseman@apple.com>2013-02-26 22:51:07 +0000
commit616025007abbb0fb53fe53ef2cac81907668c2f0 (patch)
tree66562a080021ab5c45d487e991c1c3648d21f61c /test/Transforms
parentebbb359dd6deb33ce37fe81d491c96d8c32a4509 (diff)
downloadexternal_llvm-616025007abbb0fb53fe53ef2cac81907668c2f0.zip
external_llvm-616025007abbb0fb53fe53ef2cac81907668c2f0.tar.gz
external_llvm-616025007abbb0fb53fe53ef2cac81907668c2f0.tar.bz2
Constant fold vector bitcasts of halves similarly to how floats and doubles are folded. Test case included.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/InstCombine/bitcast-vector-fold.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/bitcast-vector-fold.ll b/test/Transforms/InstCombine/bitcast-vector-fold.ll
index 8feec22..8fd7f35 100644
--- a/test/Transforms/InstCombine/bitcast-vector-fold.ll
+++ b/test/Transforms/InstCombine/bitcast-vector-fold.ll
@@ -31,3 +31,8 @@ define <4 x i32> @test6() {
%tmp3 = bitcast <2 x double> <double 0.5, double 1.0> to <4 x i32>
ret <4 x i32> %tmp3
}
+
+define i32 @test7() {
+ %tmp3 = bitcast <2 x half> <half 0xH1100, half 0xH0011> to i32
+ ret i32 %tmp3
+} \ No newline at end of file