rust-gpu/tests/ui/dis/asm.rs
Ashley Hauck 1431c18b9d
Move disassemble tests to compiletest (#609)
* Move disassemble tests to compiletest

* Fix problematic tests

* Add newlines
2021-04-30 09:07:45 +02:00

20 lines
373 B
Rust

// build-pass
// compile-flags: -C llvm-args=--disassemble-fn=asm::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();
}