IRC channel logs
2021-08-06.log
back to list of logs
<oriansj>well as the stage-posix steps are done for RISC-V, we will prove and get everything working <stikonas>yeah, I should have kaem-minimal.hex0 in the near future... <stikonas>for hex1 we probably need to implement all label calculations ~!@$ but I guess combining with . is not necessary... <oriansj>stikonas: well the . is needed for the M1 output <oriansj>so hex2 will need to support it along with % and & <oriansj>but @ and $ might be the minimal subset for hex1 <stikonas>by the way, am I correct in assuming that signed bit (11-th) is not yet dealt with in auipc/lui combos? <oriansj>if you are referring to U format, it is dealt with <oriansj>with the: (value & 0xfffff000) + 0x1000 <stikonas>hmm, something seemed odd to me when I tried negative value... <stikonas>if value = -1 then hex((value & 0xfffff000) + 0x1000) is 0x100000000 <oriansj>and that is what the documentation says to do. <oriansj>which is what RISC-V will do with the sign bit <oriansj>and If I am wrong, it is trivial to fix <oriansj>just delete the IF statement and leave value & 0xfffff000 <oriansj>but the DEADBEEF example they provided seems to support the behavior implemented. <fossy>gnulib-tool does not seem to work properly for coreutils under new linux kernel or something <oriansj>fossy: sounds like a bug report to me <stikonas>there is an option of trying different gnulib-tool... <fossy>well actually its "old" linux kernel but not that old (4.9) <fossy>wtf, it appears that gnulib-tool is straight up ignoring some of its arguments :O <xentrac>for compatibility with third-party software? <xentrac>that's the usual reason GNU software has arguments it ignores. pretty unlikely explanation for libtool ;) <siraben>Why doesn't this have a function return true when matching with the empty string? <siraben>Why does it return false when matching with the empty string? <siraben>which I also formally verified that it returns true if one of the strings is a prefix of another <siraben>my function would always return true <siraben>What's the intended behavior of the function? <oriansj>to return false if the strings don't exactly match. <oriansj>So mull matches null but doesn't match an empty string