Add trap codes to the Cretonne IL.
The trap and trapz/trapnz instructions now take a trap code immediate operand which indicates the reason for trapping.
This commit is contained in:
@@ -46,5 +46,5 @@ ebb1(v2: i32):
|
||||
|
||||
function %undefined() {
|
||||
ebb0:
|
||||
trap
|
||||
trap user0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user