aboutsummaryrefslogtreecommitdiffstats
path: root/test/Feature/newcasts.ll
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2007-11-17 03:58:34 +0000
committerNate Begeman <natebegeman@mac.com>2007-11-17 03:58:34 +0000
commit78246cae8f37740879b3b099b388f0595106db6b (patch)
treea2c805de94c3e8f5ffbbeae56cee332a2a5a5695 /test/Feature/newcasts.ll
parent111a45a2a32784b55e14c9ceb2a37fd2f244d43c (diff)
downloadexternal_llvm-78246cae8f37740879b3b099b388f0595106db6b.zip
external_llvm-78246cae8f37740879b3b099b388f0595106db6b.tar.gz
external_llvm-78246cae8f37740879b3b099b388f0595106db6b.tar.bz2
Add support for vectors to int <-> float casts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/newcasts.ll')
-rw-r--r--test/Feature/newcasts.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Feature/newcasts.ll b/test/Feature/newcasts.ll
index d237157..4cfc8bc 100644
--- a/test/Feature/newcasts.ll
+++ b/test/Feature/newcasts.ll
@@ -15,6 +15,11 @@ define void @"NewCasts" (i16 %x) {
%k = bitcast i32 %a to float
%l = inttoptr i16 %x to i32*
%m = ptrtoint i32* %l to i64
+ %n = insertelement <4 x i32> undef, i32 %a, i32 0
+ %o = sitofp <4 x i32> %n to <4 x float>
+ %p = uitofp <4 x i32> %n to <4 x float>
+ %q = fptosi <4 x float> %p to <4 x i32>
+ %r = fptoui <4 x float> %p to <4 x i32>
ret void
}