1 # RUN: llc -mtriple=amdgcn -verify-machineinstrs -run-pass si-fold-operands %s -o - | FileCheck -check-prefix=GCN %s
5 # FIXME: Is it OK to fold omod for this?
6 # GCN-LABEL: name: omod_inst_flag_nsz_src
7 # GCN: %0:vgpr_32 = nsz nofpexcept V_ADD_F32_e64 0, $vgpr0, 0, $vgpr1, 0, 0, implicit $mode, implicit $exec
8 # GCN-NEXT: %1:vgpr_32 = nofpexcept V_MUL_F32_e64 0, %0, 0, 1073741824, 0, 0, implicit $mode, implicit $exec
9 # GCN-NEXT: S_ENDPGM 0, implicit %1
10 name: omod_inst_flag_nsz_src
11 tracksRegLiveness: true
15 fp32-output-denormals: false
19 liveins: $vgpr0, $vgpr1
21 %0:vgpr_32 = nsz nofpexcept V_ADD_F32_e64 0, $vgpr0, 0, $vgpr1, 0, 0, implicit $mode, implicit $exec
22 %1:vgpr_32 = nofpexcept V_MUL_F32_e64 0, %0, 0, 1073741824, 0, 0, implicit $mode, implicit $exec
23 S_ENDPGM 0, implicit %1
28 # GCN-LABEL: name: omod_inst_flag_nsz_result
29 # GCN: %0:vgpr_32 = nofpexcept V_ADD_F32_e64 0, $vgpr0, 0, $vgpr1, 0, 1, implicit $mode, implicit $exec
30 # GCN-NEXT: S_ENDPGM 0, implicit %0
32 name: omod_inst_flag_nsz_result
33 tracksRegLiveness: true
37 fp32-output-denormals: false
41 liveins: $vgpr0, $vgpr1
43 %0:vgpr_32 = nofpexcept V_ADD_F32_e64 0, $vgpr0, 0, $vgpr1, 0, 0, implicit $mode, implicit $exec
44 %1:vgpr_32 = nsz nofpexcept V_MUL_F32_e64 0, %0, 0, 1073741824, 0, 0, implicit $mode, implicit $exec
45 S_ENDPGM 0, implicit %1
50 # GCN-LABEL: name: omod_inst_flag_nsz_both
51 # GCN: %0:vgpr_32 = nsz nofpexcept V_ADD_F32_e64 0, $vgpr0, 0, $vgpr1, 0, 1, implicit $mode, implicit $exec
52 # GCN-NEXT: S_ENDPGM 0, implicit %0
54 name: omod_inst_flag_nsz_both
55 tracksRegLiveness: true
59 fp32-output-denormals: false
63 liveins: $vgpr0, $vgpr1
65 %0:vgpr_32 = nsz nofpexcept V_ADD_F32_e64 0, $vgpr0, 0, $vgpr1, 0, 0, implicit $mode, implicit $exec
66 %1:vgpr_32 = nsz nofpexcept V_MUL_F32_e64 0, %0, 0, 1073741824, 0, 0, implicit $mode, implicit $exec
67 S_ENDPGM 0, implicit %1