This switches from a custom list of architectures to use the target-lexicon crate. - "set is_64bit=1; isa x86" is replaced with "target x86_64", and similar for other architectures, and the `is_64bit` flag is removed entirely. - The `is_compressed` flag is removed too; it's no longer being used to control REX prefixes on x86-64, ARM and Thumb are separate architectures in target-lexicon, and we can figure out how to select RISC-V compressed encodings when we're ready.
20 lines
414 B
Plaintext
20 lines
414 B
Plaintext
test compile
|
|
target x86_64 haswell
|
|
|
|
function %foo(i64, i64, i64, i32) -> b1 system_v {
|
|
ebb3(v0: i64, v1: i64, v2: i64, v3: i32):
|
|
v5 = icmp ne v2, v2
|
|
v8 = iconst.i64 0
|
|
jump ebb2(v8, v3, v5)
|
|
|
|
ebb2(v10: i64, v30: i32, v37: b1):
|
|
v18 = load.i32 notrap aligned v2
|
|
v27 = iadd.i64 v10, v10
|
|
v31 = icmp eq v30, v30
|
|
brz v31, ebb2(v27, v30, v37)
|
|
jump ebb0(v37)
|
|
|
|
ebb0(v35: b1):
|
|
return v35
|
|
}
|