Skip to content

Commit 5f80457

Browse files
authored
lcb: Fixed constant mat type (#521)
1 parent 2a6681e commit 5f80457

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vadl/main/resources/templates/lcb/llvm/lib/Target/DAGToDAGISel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bool [(${namespace})]DAGToDAGISel::trySelect(SDNode *Node)
108108

109109
// Handle rest
110110
int64_t Imm = ConstNode->getSExtValue();
111-
ReplaceNode(Node, selectImm(CurDAG, SDLoc(Node), Imm, XLenVT, *Subtarget));
111+
ReplaceNode(Node, selectImm(CurDAG, SDLoc(Node), Imm, VT, *Subtarget));
112112
return true;
113113
}
114114
default:

vadl/test/resources/testSource/sys/aarch64/aarch64-abi.vadl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ application binary interface ABI for AArch64Temp = {
9797
{
9898
MOVZWPos00 { rd = rd, imm16 = (val & 0xFFFF) as Bits<16> }
9999
MOVKWPos16 { rd = rd, imm16 = ((val >> 16) & 0xFFFF) as Bits<16> }
100-
SUBX { rd = rd, rn = 31, rm = rd }
100+
SUBW { rd = rd, rn = 31, rm = rd }
101101
}
102102

103103
/*

0 commit comments

Comments
 (0)