SHARE
TWEET

Untitled

a guest Sep 11th, 2019 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
  3.  
  4. define <4 x i1> @vector_bitcast() {
  5.     %b = alloca <4 x i1>
  6.     %a = bitcast <4 x i1>* %b to <3 x i1>*
  7.     store <3 x i1> <i1 1,i1 0,i1 1>, <3 x i1>* %a
  8.     %cast = bitcast <3 x i1>* %a to <4 x i1>*
  9.     %vec = load <4 x i1>, <4 x i1>* %cast
  10.     ret <4 x i1> %vec
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top