-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
421 additions
and
401 deletions.
There are no files selected for viewing
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
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
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
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,9 +1,9 @@ | ||
// ignore-emscripten | ||
|
||
#![feature(asm)] | ||
#![feature(llvm_asm)] | ||
|
||
fn main() { | ||
unsafe { | ||
asm!("nowayisthisavalidinstruction"); //~ ERROR instruction | ||
llvm_asm!("nowayisthisavalidinstruction"); //~ ERROR instruction | ||
} | ||
} |
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
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
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
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,3 +1,3 @@ | ||
#![feature(asm)] | ||
#![feature(llvm_asm)] | ||
|
||
pub fn main() { unsafe { asm!("" : : : "hello", "world") }; } | ||
pub fn main() { unsafe { llvm_asm!("" : : : "hello", "world") }; } |
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,11 +1,11 @@ | ||
#![feature(asm)] | ||
#![feature(llvm_asm)] | ||
|
||
// pp-exact | ||
|
||
pub fn main() { | ||
unsafe { | ||
asm!("" : : : : "volatile"); | ||
asm!("" : : : : "alignstack"); | ||
asm!("" : : : : "intel"); | ||
llvm_asm!("" : : : : "volatile"); | ||
llvm_asm!("" : : : : "alignstack"); | ||
llvm_asm!("" : : : : "intel"); | ||
} | ||
} |
Oops, something went wrong.