Advertisement
Zelatrix

incorrect_ir

Jun 26th, 2021
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. ; ModuleID = "D:\early-deliverable\codegen.py"
  2. target triple = "x86_64-pc-windows-msvc"
  3. target datalayout = ""
  4.  
  5. define void @"main"()
  6. {
  7. entry:
  8. %".2" = bitcast [6 x i8]* @"fstr" to i64*
  9. %".3" = alloca double
  10. store double 0x4000000000000000, double* %".3"
  11. %".5" = load double, double* %".3"
  12. %".6" = call i32 (i64*, ...) @"printf"(i64* %".2", double %".5")
  13. %".7" = load double, double* %".3"
  14. %".8" = fadd double %".7", 0x4008000000000000
  15. %".9" = load double, double* %".3"
  16. %".10" = call i32 (i64*, ...) @"printf"(i64* %".2", double %".9")
  17. ret void
  18. }
  19.  
  20. declare i32 @"printf"(i64* %".1", ...)
  21.  
  22. @"fstr" = internal constant [6 x i8] c"%lf \0a\00"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement