1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; CHECK: FLOOR * T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}} 4*9880d681SAndroid Build Coastguard Workerdefine amdgpu_ps void @test(<4 x float> inreg %reg0) { 5*9880d681SAndroid Build Coastguard Worker %r0 = extractelement <4 x float> %reg0, i32 0 6*9880d681SAndroid Build Coastguard Worker %r1 = call float @floor(float %r0) 7*9880d681SAndroid Build Coastguard Worker %vec = insertelement <4 x float> undef, float %r1, i32 0 8*9880d681SAndroid Build Coastguard Worker call void @llvm.R600.store.swizzle(<4 x float> %vec, i32 0, i32 0) 9*9880d681SAndroid Build Coastguard Worker ret void 10*9880d681SAndroid Build Coastguard Worker} 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Workerdeclare float @floor(float) readonly 13*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.R600.store.swizzle(<4 x float>, i32, i32) 14*9880d681SAndroid Build Coastguard Worker 15