Advertisement
Guest User

Untitled

a guest
May 24th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 0.53 KB | None | 0 0
  1. target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
  2.  
  3. @format = internal constant [4 x i8] c"%p\0A\00"
  4.  
  5. define i256 @test(i32* %arr) {
  6. entry:
  7.   %0 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @format, i64 0, i64 0), i32* %arr)
  8.   %1 = bitcast i32* %arr to <8 x i32>*
  9.   %2 = load <8 x i32>, <8 x i32>* %1, align 32
  10.   %3 = add <8 x i32> %2, <i32 10, i32 10, i32 10, i32 10, i32 10, i32 10, i32 10, i32 10>
  11.   %4 = bitcast <8 x i32> %3 to i256
  12.   ret i256 %4
  13. }
  14.  
  15. declare i32 @printf(i8*, ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement