1
;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s -check-prefix=EG -check-prefix=FUNC
2
;RUN: llc < %s -march=amdgcn -mcpu=SI | FileCheck %s -check-prefix=SI -check-prefix=FUNC
3
;RUN: llc < %s -march=amdgcn -mcpu=tonga | FileCheck %s -check-prefix=SI -check-prefix=FUNC
9
;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
14
define void @test(float addrspace(1)* %out, float %x) #1 {
15
%cos = call float @llvm.cos.f32(float %x)
16
store float %cos, float addrspace(1)* %out
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]}}
24
;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
32
define void @testv(<4 x float> addrspace(1)* %out, <4 x float> inreg %vx) #1 {
33
%cos = call <4 x float> @llvm.cos.v4f32(<4 x float> %vx)
34
store <4 x float> %cos, <4 x float> addrspace(1)* %out
38
declare float @llvm.cos.f32(float) readnone
39
declare <4 x float> @llvm.cos.v4f32(<4 x float>) readnone
41
attributes #0 = { "ShaderType"="0" }