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
8 ;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
13 define void @test(float addrspace(1)* %out, float %x) #1 {
14 %cos = call float @llvm.cos.f32(float %x)
15 store float %cos, float addrspace(1)* %out
20 ;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
21 ;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
22 ;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
23 ;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
31 define void @testv(<4 x float> addrspace(1)* %out, <4 x float> inreg %vx) #1 {
32 %cos = call <4 x float> @llvm.cos.v4f32(<4 x float> %vx)
33 store <4 x float> %cos, <4 x float> addrspace(1)* %out
37 declare float @llvm.cos.f32(float) readnone
38 declare <4 x float> @llvm.cos.v4f32(<4 x float>) readnone
40 attributes #0 = { "ShaderType"="0" }