test117
auto test117 =
q{--- test117
// BUG: passing small constant (u8) as big (u32) argument causes u8 <- u8 mov instead of u32 <- u32
u32 pass(u32 param) {
return param;
}
u64 test() {
u64 val = pass(0xFFFF_FFFF); // fill register with garbage
val += pass(0); // BUG: sets only the lowest byte, passing 0xFFFF_FF00 as an argument
return val;
}
};
tests passing
functionsvariables