Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/CodeGen/AMDGPU/clamp-modifier.ll
; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefixes=GCN,SI %s | ; RUN: llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefixes=GCN,SI %s | ||||
; RUN: llc -march=amdgcn -mcpu=fiji -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefixes=GCN,GFX89 %s | ; RUN: llc -march=amdgcn -mcpu=fiji -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefixes=GCN,GFX89 %s | ||||
; RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefixes=GCN,GFX89,GFX9 %s | ; RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefixes=GCN,GFX89,GFX9 %s | ||||
; GCN-LABEL: {{^}}v_clamp_add_src_f32: | ; GCN-LABEL: {{^}}v_clamp_add_src_f32: | ||||
; GCN: {{buffer|flat|global}}_load_dword [[A:v[0-9]+]] | ; GCN: {{buffer|flat|global}}_load_dword [[A:v[0-9]+]] | ||||
; GCN-NOT: [[A]] | ; GCN-NOT: [[A]] | ||||
; GCN: v_add_f32_e64 v{{[0-9]+}}, [[A]], 1.0 clamp{{$}} | ; GCN: v_add_f32_e64 v{{[0-9]+}}, [[A]], 1.0 clamp{{$}} | ||||
define amdgpu_kernel void @v_clamp_add_src_f32(float addrspace(1)* %out, float addrspace(1)* %aptr) #0 { | define amdgpu_kernel void @v_clamp_add_src_f32(float addrspace(1)* %out, float addrspace(1)* %aptr) #0 { | ||||
▲ Show 20 Lines • Show All 401 Lines • Show Last 20 Lines |