1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; GCN-LABEL: {{^}}main: 5*9880d681SAndroid Build Coastguard Worker; GCN: v_cvt_pkrtz_f16_f32 6*9880d681SAndroid Build Coastguard Worker; GCN: v_cvt_pkrtz_f16_f32 7*9880d681SAndroid Build Coastguard Worker; GCN-NOT: v_cvt_pkrtz_f16_f32 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Workerdefine amdgpu_ps void @main(float %src) { 10*9880d681SAndroid Build Coastguard Workermain_body: 11*9880d681SAndroid Build Coastguard Worker %p1 = call i32 @llvm.SI.packf16(float undef, float %src) 12*9880d681SAndroid Build Coastguard Worker %p2 = call i32 @llvm.SI.packf16(float %src, float undef) 13*9880d681SAndroid Build Coastguard Worker %p3 = call i32 @llvm.SI.packf16(float undef, float undef) 14*9880d681SAndroid Build Coastguard Worker %f1 = bitcast i32 %p1 to float 15*9880d681SAndroid Build Coastguard Worker %f2 = bitcast i32 %p2 to float 16*9880d681SAndroid Build Coastguard Worker %f3 = bitcast i32 %p3 to float 17*9880d681SAndroid Build Coastguard Worker call void @llvm.SI.export(i32 15, i32 1, i32 0, i32 0, i32 1, float undef, float %f1, float undef, float %f1) 18*9880d681SAndroid Build Coastguard Worker call void @llvm.SI.export(i32 15, i32 1, i32 0, i32 0, i32 1, float undef, float %f2, float undef, float %f2) 19*9880d681SAndroid Build Coastguard Worker call void @llvm.SI.export(i32 15, i32 1, i32 1, i32 0, i32 1, float undef, float %f3, float undef, float %f2) 20*9880d681SAndroid Build Coastguard Worker ret void 21*9880d681SAndroid Build Coastguard Worker} 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind readnone 24*9880d681SAndroid Build Coastguard Workerdeclare i32 @llvm.SI.packf16(float, float) #0 25*9880d681SAndroid Build Coastguard Worker 26*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.SI.export(i32, i32, i32, i32, i32, float, float, float, float) 27*9880d681SAndroid Build Coastguard Worker 28*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind readnone } 29