1 ; RUN: llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs < %s | FileCheck %s 2 ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck %s 3 4 ; CHECK-LABEL: {{^}}v_fadd_f64: 5 ; CHECK: v_add_f64 {{v[[0-9]+:[0-9]+]}}, {{v[[0-9]+:[0-9]+]}}, {{v[[0-9]+:[0-9]+]}} 6 define void @v_fadd_f64(double addrspace(1)* %out, double addrspace(1)* %in1, 7 double addrspace(1)* %in2) { 8 %r0 = load double, double addrspace(1)* %in1 9 %r1 = load double, double addrspace(1)* %in2 10 %r2 = fadd double %r0, %r1 11 store double %r2, double addrspace(1)* %out 12 ret void 13 } 14 15 ; CHECK-LABEL: {{^}}s_fadd_f64: 16 ; CHECK: v_add_f64 {{v\[[0-9]+:[0-9]+\]}}, {{v\[[0-9]+:[0-9]+\]}}, {{s\[[0-9]+:[0-9]+\]}} 17 define void @s_fadd_f64(double addrspace(1)* %out, double %r0, double %r1) { 18 %r2 = fadd double %r0, %r1 19 store double %r2, double addrspace(1)* %out 20 ret void 21 } 22 23 ; CHECK-LABEL: {{^}}v_fadd_v2f64: 24 ; CHECK: v_add_f64 25 ; CHECK: v_add_f64 26 ; CHECK: buffer_store_dwordx4 27 define void @v_fadd_v2f64(<2 x double> addrspace(1)* %out, <2 x double> addrspace(1)* %in1, 28 <2 x double> addrspace(1)* %in2) { 29 %r0 = load <2 x double>, <2 x double> addrspace(1)* %in1 30 %r1 = load <2 x double>, <2 x double> addrspace(1)* %in2 31 %r2 = fadd <2 x double> %r0, %r1 32 store <2 x double> %r2, <2 x double> addrspace(1)* %out 33 ret void 34 } 35 36 ; CHECK-LABEL: {{^}}s_fadd_v2f64: 37 ; CHECK: v_add_f64 {{v\[[0-9]+:[0-9]+\]}}, {{s\[[0-9]+:[0-9]+\]}}, {{v\[[0-9]+:[0-9]+\]}} 38 ; CHECK: v_add_f64 {{v\[[0-9]+:[0-9]+\]}}, {{s\[[0-9]+:[0-9]+\]}}, {{v\[[0-9]+:[0-9]+\]}} 39 ; CHECK: buffer_store_dwordx4 40 define void @s_fadd_v2f64(<2 x double> addrspace(1)* %out, <2 x double> %r0, <2 x double> %r1) { 41 %r2 = fadd <2 x double> %r0, %r1 42 store <2 x double> %r2, <2 x double> addrspace(1)* %out 43 ret void 44 } 45