1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -enable-no-signed-zeros-fp-math=true < %s | FileCheck %s 3; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -enable-no-signed-zeros-fp-math=false < %s | FileCheck %s 4 5; no-signed-zeros-fp-math should not increase the number of 6; instructions emitted. 7 8define { double, double } @testfn(double %arg, double %arg1, double %arg2) { 9; CHECK-LABEL: testfn: 10; CHECK: ; %bb.0: ; %bb 11; CHECK-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) 12; CHECK-NEXT: v_add_f64 v[4:5], v[4:5], -v[0:1] 13; CHECK-NEXT: v_add_f64 v[0:1], v[4:5], -v[2:3] 14; CHECK-NEXT: v_add_f64 v[2:3], -v[2:3], -v[4:5] 15; CHECK-NEXT: s_setpc_b64 s[30:31] 16bb: 17 %tmp = fsub fast double 0.000000e+00, %arg1 18 %tmp3 = fsub fast double %arg2, %arg 19 %tmp4 = fadd fast double %tmp3, %tmp 20 %tmp5 = fsub fast double %tmp, %tmp3 21 %tmp6 = insertvalue { double, double } undef, double %tmp4, 0 22 %tmp7 = insertvalue { double, double } %tmp6, double %tmp5, 1 23 ret { double, double } %tmp7 24} 25