Revert "ScheduleDAGInstrs: Rework schedule graph builder."
[oota-llvm.git] / test / CodeGen / AMDGPU / llvm.AMDGPU.trunc.ll
1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck --check-prefix=R600 %s
2 ; RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck --check-prefix=SI %s
3 ; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck --check-prefix=SI %s
4
5 ; R600: {{^}}amdgpu_trunc:
6 ; R600: TRUNC T{{[0-9]+\.[XYZW]}}, KC0[2].Z
7 ; SI: {{^}}amdgpu_trunc:
8 ; SI: 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