Hi,
Pretty sure this is a bug in the ABI used for Apple M1.
The following works with target is amd64_apple but dies
with "invalid class” when target is arm_apple.
export function ub $LF() {
@start
ret 10
}
export function w $main(w %arg1, l %arg2) {
@start
%a =ub call $LF()
call $printf(l $str1, ..., ub %a)
ret 0
}
data $str1 = { b "Hello world!%c", b 0 }
Best
-- David