summaryrefslogtreecommitdiff
path: root/test/Feature
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
commitb348d18caf834bc26a80e60aa7a2c9b1748734e8 (patch)
treea2c805de94c3e8f5ffbbeae56cee332a2a5a5695 /test/Feature
parent247fdca789b10543848e110ab0860f99724b6788 (diff)
downloadllvm-b348d18caf834bc26a80e60aa7a2c9b1748734e8.tar.gz
llvm-b348d18caf834bc26a80e60aa7a2c9b1748734e8.tar.bz2
llvm-b348d18caf834bc26a80e60aa7a2c9b1748734e8.tar.xz
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')
-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 d2371573b7..4cfc8bcf08 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
}