Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 3bdca6e

Browse files
committed
Replace feature(asm) with feature(llvm_asm)
1 parent c529052 commit 3bdca6e

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

ices/13368.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#![feature(asm)]
1+
#![feature(llvm_asm)]
22

33
fn main() {
44
let arr: [u8; 16];
5-
unsafe { asm!("" : "=m"(arr)); }
5+
unsafe { llvm_asm!("" : "=m"(arr)); }
66
println!("{:?}", arr);
77
}

ices/13520.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#![feature(asm)]
1+
#![feature(llvm_asm)]
22

33
fn main() {
44
let x = ();
55
unsafe {
66
let p: *const () = &x;
7-
asm!("" :: "r"(*p));
7+
llvm_asm!("" :: "r"(*p));
88
}
99
}

ices/15402.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#![feature(asm)]
1+
#![feature(llvm_asm)]
22

33
#[repr(packed)]
44
struct Bitfield<T>(T);
55

66
fn test()->(Bitfield<u32>,Bitfield<u32>) {
77
let mut out=(Bitfield(0),Bitfield(0));
8-
unsafe{asm!("" : "={eax}"(out.0), "={ebx}"(out.1))};
8+
unsafe{llvm_asm!("" : "={eax}"(out.0), "={ebx}"(out.1))};
99
out
1010
}
1111

ices/59184.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(asm)]
1+
#![feature(llvm_asm)]
22

33
fn main()
44
{
@@ -12,7 +12,7 @@ pub fn read_after_raising_any_exceptions() -> u16
1212
{
1313
// See <https://github.com/HJLebbink/asm-dude/wiki/FSTCW_FNSTCW>.
1414
let mut control_word: u16;
15-
asm!
15+
llvm_asm!
1616
(
1717
"fstcw $0"
1818
:

ices/68136-1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#![feature(asm)]
1+
#![feature(llvm_asm)]
22

33
extern "C" fn foo() { }
44

55
fn main() {
66
unsafe {
7-
asm!("callq $0" :: "s"(foo) :: "volatile");
7+
llvm_asm!("callq $0" :: "s"(foo) :: "volatile");
88
}
99
}

ices/68136-2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#![feature(asm)]
1+
#![feature(llvm_asm)]
22

33
extern "C" fn foo() { }
44

55
fn main() {
66
let x: usize;
77
unsafe {
8-
asm!("movq $1, $0" : "=r"(x) : "r"(foo));
8+
llvm_asm!("movq $1, $0" : "=r"(x) : "r"(foo));
99
}
1010
assert!(x != 0);
1111
}

0 commit comments

Comments
 (0)