fix typos; NFC
[oota-llvm.git] / test / CodeGen / R600 / llvm.AMDGPU.trunc.ll
1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck --check-prefix=R600-CHECK %s
2 ; RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck --check-prefix=SI-CHECK %s
3 ; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck --check-prefix=SI-CHECK %s
4
5 ; R600-CHECK: {{^}}amdgpu_trunc:
6 ; R600-CHECK: TRUNC T{{[0-9]+\.[XYZW]}}, KC0[2].Z
7 ; SI-CHECK: {{^}}amdgpu_trunc:
8 ; SI-CHECK: v_trunc_f32
9
10 define void @amdgpu_trunc(float addrspace(1)* %out, float %x) {
11 entry:
12   %0 = call float @llvm.AMDGPU.trunc(float %x)
13   store float %0, float addrspace(1)* %out
14   ret void
15 }
16
17 declare float @llvm.AMDGPU.trunc(float ) readnone