source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AMDGPU/llvm.AMDGPU.trunc.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 621 bytes
Line 
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
10define void @amdgpu_trunc(float addrspace(1)* %out, float %x) {
11entry:
12  %0 = call float @llvm.AMDGPU.trunc(float %x)
13  store float %0, float addrspace(1)* %out
14  ret void
15}
16
17declare float @llvm.AMDGPU.trunc(float ) readnone
Note: See TracBrowser for help on using the repository browser.