rust-gpu/tests/ui/dis/asm.rs
Ashley Hauck f780364317
rustup update (#840)
* rustup update

* asm->core::arch::asm
2022-01-13 17:27:33 +02:00

21 lines
394 B
Rust

// build-pass
// compile-flags: -C llvm-args=--disassemble-fn=asm::asm
use core::arch::asm;
use spirv_std as _;
fn asm() {
unsafe {
asm!(
"%int = OpTypeInt 32 0",
"%scope = OpConstant %int 3",
"%semantics = OpConstant %int 72",
"OpMemoryBarrier %scope %semantics",
);
}
}
#[spirv(fragment)]
pub fn main() {
asm();
}