R600/SI: Change all instruction assembly names to lowercase.
[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=r600 -mcpu=verde -verify-machineinstrs | FileCheck --check-prefix=SI-CHECK %s
3
4 ; R600-CHECK: {{^}}amdgpu_trunc:
5 ; R600-CHECK: TRUNC T{{[0-9]+\.[XYZW]}}, KC0[2].Z
6 ; SI-CHECK: {{^}}amdgpu_trunc:
7 ; SI-CHECK: v_trunc_f32
8
9 define void @amdgpu_trunc(float addrspace(1)* %out, float %x) {
10 entry:
11   %0 = call float @llvm.AMDGPU.trunc(float %x)
12   store float %0, float addrspace(1)* %out
13   ret void
14 }
15
16 declare float @llvm.AMDGPU.trunc(float ) readnone