Advertisement
Guest User

Untitled

a guest
Jul 27th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 0.58 KB | None | 0 0
  1. define <3 x float> @f(float %a) {
  2.     %v0 = insertelement <3 x float> undef, float %a, i32 0
  3.     %v1 = insertelement <3 x float> %v0, float %a, i32 1
  4.     %v2 = insertelement <3 x float> %v1, float %a, i32 2
  5.     %rv = fsub fast <3 x float> <float 1.0, float 1.0, float 1.0>, %v2
  6.     ret <3 x float> %rv
  7. }
  8.  
  9. define <3 x float> @g(float %a) {
  10.     %el = fsub fast float 1.0, %a
  11.     %v0 = insertelement <3 x float> undef, float %el, i32 0
  12.     %v1 = insertelement <3 x float> %v0, float %el, i32 1
  13.     %v2 = insertelement <3 x float> %v1, float %el, i32 2
  14.     ret <3 x float> %v2
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement