mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 23:29:22 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218776 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
490 B
LLVM
12 lines
490 B
LLVM
; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
|
|
|
|
declare double @llvm.AMDGPU.rsq.clamped.f64(double) nounwind readnone
|
|
|
|
; FUNC-LABEL: {{^}}rsq_clamped_f64:
|
|
; SI: V_RSQ_CLAMP_F64_e32
|
|
define void @rsq_clamped_f64(double addrspace(1)* %out, double %src) nounwind {
|
|
%rsq_clamped = call double @llvm.AMDGPU.rsq.clamped.f64(double %src) nounwind readnone
|
|
store double %rsq_clamped, double addrspace(1)* %out, align 8
|
|
ret void
|
|
}
|