Commit a8c87842 authored by qinsoon's avatar qinsoon

remove warnings

parent ed6a477b
......@@ -14,6 +14,7 @@ use compiler::backend::reg_alloc::validate::exact_liveness::*;
const VERIFY_SPILLING : bool = false;
#[allow(unused_variables)]
#[allow(unreachable_code)]
pub fn validate_regalloc(cf: &CompiledFunction,
reg_assigned: LinkedHashMap<MuID, MuID>,
spill_scratch_regs: LinkedHashMap<MuID, MuID>)
......
......@@ -3,12 +3,10 @@ extern crate extprim;
use mu::ast::ir::*;
use mu::ast::inst::*;
use mu::ast::types;
use mu::ast::types::*;
use mu::ast::op::*;
use mu::vm::*;
use std::sync::Arc;
use std::sync::RwLock;
use mu::utils::LinkedHashMap;
use mu::testutil;
......@@ -229,8 +227,6 @@ fn test_shl_u128() {
let lib = testutil::compile_fnc("shl_u128", &shl_u128);
unsafe {
use self::extprim::u128::u128;
let shl_u128 : libloading::Symbol<unsafe extern fn(u64, u64, u64, u64) -> (u64, u64)> = lib.get(b"shl_u128").unwrap();
let res = shl_u128(1, 0, 64, 0);
......@@ -280,8 +276,6 @@ fn test_lshr_u128() {
let lib = testutil::compile_fnc("lshr_u128", &lshr_u128);
unsafe {
use self::extprim::u128::u128;
let lshr_u128 : libloading::Symbol<unsafe extern fn(u64, u64, u64, u64) -> (u64, u64)> = lib.get(b"lshr_u128").unwrap();
let res = lshr_u128(1, 1, 64, 0);
......@@ -331,8 +325,6 @@ fn test_ashr_u128() {
let lib = testutil::compile_fnc("ashr_u128", &ashr_u128);
unsafe {
use self::extprim::u128::u128;
let ashr_u128 : libloading::Symbol<unsafe extern fn(u64, u64, u64, u64) -> (u64, u64)> = lib.get(b"ashr_u128").unwrap();
let res = ashr_u128(1, 0xffffffffffffffff, 64, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment