Skip to content

Commit a5c8bdf

Browse files
authored
Mark hvc, smc and svc as call. (capstone-engine#76)
1 parent 93d64ce commit a5c8bdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2917,9 +2917,11 @@ def DCPS1 : ExceptionGeneration<0b101, 0b01, "dcps1">;
29172917
def DCPS2 : ExceptionGeneration<0b101, 0b10, "dcps2">;
29182918
def DCPS3 : ExceptionGeneration<0b101, 0b11, "dcps3">, Requires<[HasEL3]>;
29192919
def HLT : ExceptionGeneration<0b010, 0b00, "hlt">;
2920+
let isCall = 1 in {
29202921
def HVC : ExceptionGeneration<0b000, 0b10, "hvc">;
29212922
def SMC : ExceptionGeneration<0b000, 0b11, "smc">, Requires<[HasEL3]>;
29222923
def SVC : ExceptionGeneration<0b000, 0b01, "svc">;
2924+
}
29232925

29242926
// DCPSn defaults to an immediate operand of zero if unspecified.
29252927
def : InstAlias<"dcps1", (DCPS1 0)>;

0 commit comments

Comments
 (0)