mrk-its / rust-mos

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
55 stars 7 forks source link

128-bit rotate left hangs compiler #15

Closed mrk-its closed 1 year ago

mrk-its commented 1 year ago
#![no_std]
#![feature(start)]
#![allow(unused_variables)]

use core::panic::PanicInfo;
use ufmt_stdio::*;

#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
    println!("PANIC");
    loop {}
}

#[start]
fn main(_argc: isize, _argv: *const *const u8) -> isize {
    let mut result: u128 = 1;
    for i in 0..100 {
        result = result.rotate_left(i);
        println!("result: {}, {:x}", i, result & 1);
    }
    0
}
mrk-its commented 1 year ago

https://github.com/llvm-mos/llvm-mos/issues/236