Home | History | Annotate | Download | only in runtime
      1 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32-S64"
      2 target triple = "armv7-none-linux-gnueabi"
      3 
      4 @fc_255.0 = internal constant <4 x float> <float 255.0, float 255.0, float 255.0, float 255.0>, align 16
      5 @fc_0.5 = internal constant <4 x float> <float 0.5, float 0.5, float 0.5, float 0.5>, align 16
      6 
      7 declare <4 x i8> @_Z14convert_uchar4Dv4_f(<4 x float> %in) nounwind readnone
      8 declare <4 x float> @_Z14convert_float4Dv4_h(<4 x i8> %in) nounwind readnone
      9 
     10 ; uchar4 __attribute__((overloadable)) rsPackColorTo8888(float4 color)
     11 define <4 x i8> @_Z17rsPackColorTo8888Dv4_f(<4 x float> %color) nounwind readnone {
     12     %f255 = load <4 x float>* @fc_255.0, align 16
     13     %f05 = load <4 x float>* @fc_0.5, align 16
     14     %v1 = fmul <4 x float> %f255, %color
     15     %v2 = fadd <4 x float> %f05, %v1
     16     %v3 = tail call <4 x i8> @_Z14convert_uchar4Dv4_f(<4 x float> %v2) nounwind readnone
     17     ret <4 x i8> %v3
     18 }
     19 
     20 ; uchar4 __attribute__((overloadable)) rsPackColorTo8888(float3 color)
     21 define <4 x i8> @_Z17rsPackColorTo8888Dv3_f(<3 x float> %color) nounwind readnone {
     22     %1 = shufflevector <3 x float> %color, <3 x float> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
     23     %2 = insertelement <4 x float> %1, float 1.0, i32 3
     24     %3 = tail call <4 x i8> @_Z17rsPackColorTo8888Dv4_f(<4 x float> %2) nounwind readnone
     25     ret <4 x i8> %3
     26 }
     27 
     28 ; uchar4 __attribute__((overloadable)) rsPackColorTo8888(float r, float g, float b)
     29 define <4 x i8> @_Z17rsPackColorTo8888fff(float %r, float %g, float %b) nounwind readnone {
     30     %1 = insertelement <4 x float> undef, float %r, i32 0
     31     %2 = insertelement <4 x float> %1, float %g, i32 1
     32     %3 = insertelement <4 x float> %2, float %b, i32 2
     33     %4 = insertelement <4 x float> %3, float 1.0, i32 3
     34     %5 = tail call <4 x i8> @_Z17rsPackColorTo8888Dv4_f(<4 x float> %4) nounwind readnone
     35     ret <4 x i8> %5
     36 }
     37 
     38 ; uchar4 __attribute__((overloadable)) rsPackColorTo8888(float r, float g, float b, float a)
     39 define <4 x i8> @_Z17rsPackColorTo8888ffff(float %r, float %g, float %b, float %a) nounwind readnone {
     40     %1 = insertelement <4 x float> undef, float %r, i32 0
     41     %2 = insertelement <4 x float> %1, float %g, i32 1
     42     %3 = insertelement <4 x float> %2, float %b, i32 2
     43     %4 = insertelement <4 x float> %3, float %a, i32 3
     44     %5 = tail call <4 x i8> @_Z17rsPackColorTo8888Dv4_f(<4 x float> %4) nounwind readnone
     45     ret <4 x i8> %5
     46 }
     47 
     48