To keep cross-compiling straightforward, Cretonne shouldn't have any behavior that depends on the host. This renames the "Native" calling convention to "SystemV", which has a defined meaning for each target, so that it's clear that the calling convention doesn't change depending on what host Cretonne is running on.
18 lines
208 B
Plaintext
18 lines
208 B
Plaintext
test regalloc
|
|
set is_64bit=1
|
|
isa intel haswell
|
|
|
|
function %foo() system_v {
|
|
ebb4:
|
|
v3 = iconst.i32 0
|
|
jump ebb3
|
|
|
|
ebb3:
|
|
v9 = udiv v3, v3
|
|
jump ebb1
|
|
|
|
ebb1:
|
|
v19 = iadd.i32 v9, v9
|
|
jump ebb3
|
|
}
|