Home | History | Annotate | Download | only in R600
      1 ;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s -check-prefix=EG -check-prefix=FUNC
      2 ;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s -check-prefix=SI -check-prefix=FUNC
      3 
      4 ;FUNC-LABEL: test
      5 ;EG: MULADD_IEEE *
      6 ;EG: FRACT *
      7 ;EG: ADD *
      8 ;EG: SIN * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
      9 ;EG-NOT: SIN
     10 ;SI: V_MUL_F32
     11 ;SI: V_SIN_F32
     12 ;SI-NOT: V_SIN_F32
     13 
     14 define void @test(float addrspace(1)* %out, float %x) #1 {
     15    %sin = call float @llvm.sin.f32(float %x)
     16    store float %sin, float addrspace(1)* %out
     17    ret void
     18 }
     19 
     20 ;FUNC-LABEL: testv
     21 ;EG: SIN * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
     22 ;EG: SIN * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
     23 ;EG: SIN * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
     24 ;EG: SIN * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
     25 ;EG-NOT: SIN
     26 ;SI: V_SIN_F32
     27 ;SI: V_SIN_F32
     28 ;SI: V_SIN_F32
     29 ;SI: V_SIN_F32
     30 ;SI-NOT: V_SIN_F32
     31 
     32 define void @testv(<4 x float> addrspace(1)* %out, <4 x float> %vx) #1 {
     33    %sin = call <4 x float> @llvm.sin.v4f32( <4 x float> %vx)
     34    store <4 x float> %sin, <4 x float> addrspace(1)* %out
     35    ret void
     36 }
     37 
     38 declare float @llvm.sin.f32(float) readnone
     39 declare <4 x float> @llvm.sin.v4f32(<4 x float>) readnone
     40 
     41 attributes #0 = { "ShaderType"="0" }
     42