From b348d18caf834bc26a80e60aa7a2c9b1748734e8 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Sat, 17 Nov 2007 03:58:34 +0000 Subject: 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 --- test/Feature/newcasts.ll | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/Feature/newcasts.ll') 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 } -- cgit v1.2.3