Commit a8c87842 authored by qinsoon's avatar qinsoon

remove warnings

parent ed6a477b
...@@ -14,6 +14,7 @@ use compiler::backend::reg_alloc::validate::exact_liveness::*; ...@@ -14,6 +14,7 @@ use compiler::backend::reg_alloc::validate::exact_liveness::*;
const VERIFY_SPILLING : bool = false; const VERIFY_SPILLING : bool = false;
#[allow(unused_variables)] #[allow(unused_variables)]
#[allow(unreachable_code)]
pub fn validate_regalloc(cf: &CompiledFunction, pub fn validate_regalloc(cf: &CompiledFunction,
reg_assigned: LinkedHashMap<MuID, MuID>, reg_assigned: LinkedHashMap<MuID, MuID>,
spill_scratch_regs: LinkedHashMap<MuID, MuID>) spill_scratch_regs: LinkedHashMap<MuID, MuID>)
......
...@@ -3,12 +3,10 @@ extern crate extprim; ...@@ -3,12 +3,10 @@ extern crate extprim;
use mu::ast::ir::*; use mu::ast::ir::*;
use mu::ast::inst::*; use mu::ast::inst::*;
use mu::ast::types;
use mu::ast::types::*; use mu::ast::types::*;
use mu::ast::op::*; use mu::ast::op::*;
use mu::vm::*; use mu::vm::*;
use std::sync::Arc;
use std::sync::RwLock; use std::sync::RwLock;
use mu::utils::LinkedHashMap; use mu::utils::LinkedHashMap;
use mu::testutil; use mu::testutil;
...@@ -229,8 +227,6 @@ fn test_shl_u128() { ...@@ -229,8 +227,6 @@ fn test_shl_u128() {
let lib = testutil::compile_fnc("shl_u128", &shl_u128); let lib = testutil::compile_fnc("shl_u128", &shl_u128);
unsafe { 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 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); let res = shl_u128(1, 0, 64, 0);
...@@ -280,8 +276,6 @@ fn test_lshr_u128() { ...@@ -280,8 +276,6 @@ fn test_lshr_u128() {
let lib = testutil::compile_fnc("lshr_u128", &lshr_u128); let lib = testutil::compile_fnc("lshr_u128", &lshr_u128);
unsafe { 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 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); let res = lshr_u128(1, 1, 64, 0);
...@@ -331,8 +325,6 @@ fn test_ashr_u128() { ...@@ -331,8 +325,6 @@ fn test_ashr_u128() {
let lib = testutil::compile_fnc("ashr_u128", &ashr_u128); let lib = testutil::compile_fnc("ashr_u128", &ashr_u128);
unsafe { 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 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); 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