Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison test/CodeGen/R600/llvm.AMDGPU.rsq.ll @ 77:54457678186b
LLVM 3.6
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Sep 2014 22:06:00 +0900 |
parents | |
children | 60c9769439b8 |
comparison
equal
deleted
inserted
replaced
34:e874dbf0ad9d | 77:54457678186b |
---|---|
1 ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s | |
2 ; RUN: llc -march=r600 -mcpu=cypress -verify-machineinstrs < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s | |
3 | |
4 declare float @llvm.AMDGPU.rsq.f32(float) nounwind readnone | |
5 | |
6 ; FUNC-LABEL: @rsq_f32 | |
7 ; SI: V_RSQ_F32_e32 | |
8 ; EG: RECIPSQRT_IEEE | |
9 define void @rsq_f32(float addrspace(1)* %out, float %src) nounwind { | |
10 %rsq = call float @llvm.AMDGPU.rsq.f32(float %src) nounwind readnone | |
11 store float %rsq, float addrspace(1)* %out, align 4 | |
12 ret void | |
13 } |