forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Includes rust-lang/llvm#80 Includes rust-lang/llvm#79 Also adds tests and thus fixes rust-lang#24194
- Loading branch information
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
Submodule llvm
updated
4 files
+20 −0 | include/llvm/Analysis/TargetLibraryInfo.def | |
+8 −1 | lib/Analysis/MemoryBuiltins.cpp | |
+2 −2 | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
+16 −0 | test/CodeGen/ARM/v6m-smul-with-overflow.ll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# If this file is modified, then llvm will be (optionally) cleaned and then rebuilt. | ||
# The actual contents of this file do not matter, but to trigger a change on the | ||
# build bots then the contents should be changed so git updates the mtime. | ||
2017-05-13 | ||
2017-06-03 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
#![crate_type="lib"] | ||
|
||
#[no_mangle] | ||
pub fn alloc_zeroed_test(size: u8) { | ||
// CHECK-LABEL: @alloc_zeroed_test | ||
// CHECK-NEXT: start: | ||
// CHECK-NEXT: ret void | ||
let x = vec![0u8; size as usize]; | ||
drop(x); | ||
} | ||
|
||
#[no_mangle] | ||
pub fn alloc_test(data: u32) { | ||
// CHECK-LABEL: @alloc_test | ||
// CHECK-NEXT: start: | ||
// CHECK-NEXT: ret void | ||
let x = Box::new(data); | ||
drop(x); | ||
} |