llvm.org GIT mirror llvm / 8d6df7a
Merging r203281: ------------------------------------------------------------------------ r203281 | thomas.stellard | 2014-03-07 12:12:39 -0800 (Fri, 07 Mar 2014) | 4 lines R600/SI: Using SGPRs is illegal for instructions that read carry-out from VCC Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@204649 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 6 years ago
2 changed file(s) with 10 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
289289 : VOP2_Helper ;
290290
291291 multiclass VOP2b_32 op, string opName, list pattern,
292 string revOp = opName> {
292 RegisterClass src0_rc, string revOp = opName> {
293293
294294 def _e32 : VOP2 <
295 op, (outs VReg_32:$dst), (ins VSrc_32:$src0, VReg_32:$src1),
295 op, (outs VReg_32:$dst), (ins src0_rc:$src0, VReg_32:$src1),
296296 opName#"_e32 $dst, $src0, $src1", pattern
297297 >, VOP , VOP2_REV;
298298
988988 let isCommutable = 1, Defs = [VCC] in { // Carry-out goes to VCC
989989 // No patterns so that the scalar instructions are always selected.
990990 // The scalar versions will be replaced with vector when needed later.
991 defm V_ADD_I32 : VOP2b_32 <0x00000025, "V_ADD_I32", []>;
992 defm V_SUB_I32 : VOP2b_32 <0x00000026, "V_SUB_I32", []>;
993 defm V_SUBREV_I32 : VOP2b_32 <0x00000027, "V_SUBREV_I32", [], "V_SUB_I32">;
991 defm V_ADD_I32 : VOP2b_32 <0x00000025, "V_ADD_I32", [], VSrc_32>;
992 defm V_SUB_I32 : VOP2b_32 <0x00000026, "V_SUB_I32", [], VSrc_32>;
993 defm V_SUBREV_I32 : VOP2b_32 <0x00000027, "V_SUBREV_I32", [], VSrc_32,
994 "V_SUB_I32">;
994995
995996 let Uses = [VCC] in { // Carry-in comes from VCC
996 defm V_ADDC_U32 : VOP2b_32 <0x00000028, "V_ADDC_U32", []>;
997 defm V_SUBB_U32 : VOP2b_32 <0x00000029, "V_SUBB_U32", []>;
998 defm V_SUBBREV_U32 : VOP2b_32 <0x0000002a, "V_SUBBREV_U32", [], "V_SUBB_U32">;
997 defm V_ADDC_U32 : VOP2b_32 <0x00000028, "V_ADDC_U32", [], VReg_32>;
998 defm V_SUBB_U32 : VOP2b_32 <0x00000029, "V_SUBB_U32", [], VReg_32>;
999 defm V_SUBBREV_U32 : VOP2b_32 <0x0000002a, "V_SUBBREV_U32", [], VReg_32,
1000 "V_SUBB_U32">;
9991001 } // End Uses = [VCC]
10001002 } // End isCommutable = 1, Defs = [VCC]
10011003