[SystemZ] Add patterns to load a constant into a high word (IIHF)
[oota-llvm.git] / lib / Target / SystemZ / SystemZInstrFormats.td
index 97a1578f174945e87cfd4a88f9a542a116722c9b..c74091f5948911abb2db6ebc9981b1954283fe2c 100644 (file)
@@ -1349,6 +1349,12 @@ class Pseudo<dag outs, dag ins, list<dag> pattern>
   let isCodeGenOnly = 1;
 }
 
+// Like UnaryRI, but expanded after RA depending on the choice of register.
+class UnaryRIPseudo<SDPatternOperator operator, RegisterOperand cls,
+                    Immediate imm>
+  : Pseudo<(outs cls:$R1), (ins imm:$I2),
+           [(set cls:$R1, (operator imm:$I2))]>;
+
 // Like UnaryRXY, but expanded after RA depending on the choice of registers.
 class UnaryRXYPseudo<string key, SDPatternOperator operator,
                      RegisterOperand cls, bits<5> bytes,