llvm.org GIT mirror llvm / c06ff88
Merge 79741 from mainline. Some dummy cost model for s390x: - Prefer short-imm instructions over ext-imm, when possible - Prefer Z10 instructions over Z9, when possible This hopefully should fix some dejagnu test fails on solaris git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_26@79761 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 10 years ago
2 changed file(s) with 13 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
9393 : I16;
9494
9595 class RXI op, dag outs, dag ins, string asmstr, list pattern>
96 : I8;
96 : I8 {
97 let AddedComplexity = 1;
98 }
9799
98100 class RXYI op, dag outs, dag ins, string asmstr, list pattern>
99101 : I16;
100102
101103 class RSI op, dag outs, dag ins, string asmstr, list pattern>
102 : I8;
104 : I8 {
105 let AddedComplexity = 1;
106 }
103107
104108 class RSYI op, dag outs, dag ins, string asmstr, list pattern>
105109 : I16;
106110
107111 class SII op, dag outs, dag ins, string asmstr, list pattern>
108 : I8;
112 : I8 {
113 let AddedComplexity = 1;
114 }
109115
110116 class SIYI op, dag outs, dag ins, string asmstr, list pattern>
111117 : I16;
323323 "mviy\t{$dst, $src}",
324324 [(truncstorei8 (i32 i32immSExt8:$src), riaddr:$dst)]>;
325325
326 let AddedComplexity = 2 in {
326327 def MOV16mi : SILI<0xE544,
327328 (outs), (ins riaddr12:$dst, s16imm:$src),
328329 "mvhhi\t{$dst, $src}",
338339 "mvghi\t{$dst, $src}",
339340 [(store (i64 immSExt16:$src), riaddr12:$dst)]>,
340341 Requires<[IsZ10]>;
342 }
341343
342344 // sexts
343345 def MOVSX32rr8 : RREI<0xB926,
855857 "mghi\t{$dst, $src2}",
856858 [(set GR64:$dst, (mul GR64:$src1, immSExt16:$src2))]>;
857859
860 let AddedComplexity = 2 in {
858861 def MUL32ri : RILI<0xC21,
859862 (outs GR32:$dst), (ins GR32:$src1, s32imm:$src2),
860863 "msfi\t{$dst, $src2}",
865868 "msgfi\t{$dst, $src2}",
866869 [(set GR64:$dst, (mul GR64:$src1, i64immSExt32:$src2))]>,
867870 Requires<[IsZ10]>;
871 }
868872
869873 def MUL32rm : RXI<0x71,
870874 (outs GR32:$dst), (ins GR32:$src1, rriaddr12:$src2),