[AArch64] Ensure BICi and ORRi have same input and output types. NFC
authorDavid Green <david.green@arm.com>
Sun, 2 Jul 2023 10:17:59 +0000 (11:17 +0100)
committerDavid Green <david.green@arm.com>
Sun, 2 Jul 2023 10:17:59 +0000 (11:17 +0100)
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

index 1afc70f..db55853 100644 (file)
@@ -11937,7 +11937,8 @@ static SDValue tryAdvSIMDModImm32(unsigned NewOp, SDValue Op, SelectionDAG &DAG,
       SDValue Mov;
 
       if (LHS)
-        Mov = DAG.getNode(NewOp, dl, MovTy, *LHS,
+        Mov = DAG.getNode(NewOp, dl, MovTy,
+                          DAG.getNode(AArch64ISD::NVCAST, dl, MovTy, *LHS),
                           DAG.getConstant(Value, dl, MVT::i32),
                           DAG.getConstant(Shift, dl, MVT::i32));
       else
@@ -11981,7 +11982,8 @@ static SDValue tryAdvSIMDModImm16(unsigned NewOp, SDValue Op, SelectionDAG &DAG,
       SDValue Mov;
 
       if (LHS)
-        Mov = DAG.getNode(NewOp, dl, MovTy, *LHS,
+        Mov = DAG.getNode(NewOp, dl, MovTy,
+                          DAG.getNode(AArch64ISD::NVCAST, dl, MovTy, *LHS),
                           DAG.getConstant(Value, dl, MVT::i32),
                           DAG.getConstant(Shift, dl, MVT::i32));
       else