diff options
Diffstat (limited to 'tests/assembly-llvm/targets/targets-amdgpu.rs')
| -rw-r--r-- | tests/assembly-llvm/targets/targets-amdgpu.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/assembly-llvm/targets/targets-amdgpu.rs b/tests/assembly-llvm/targets/targets-amdgpu.rs new file mode 100644 index 00000000000..1d10b8fc315 --- /dev/null +++ b/tests/assembly-llvm/targets/targets-amdgpu.rs @@ -0,0 +1,22 @@ +//@ add-core-stubs +//@ assembly-output: emit-asm +// ignore-tidy-linelength +//@ revisions: amdgcn_amd_amdhsa +//@ [amdgcn_amd_amdhsa] compile-flags: --target amdgcn-amd-amdhsa -Ctarget-cpu=gfx900 +//@ [amdgcn_amd_amdhsa] needs-llvm-components: amdgpu + +// Sanity-check that each target can produce assembly code. + +#![feature(no_core, lang_items)] +#![no_std] +#![no_core] +#![crate_type = "lib"] + +extern crate minicore; +use minicore::*; + +pub fn test() -> u8 { + 42 +} + +// CHECK: .version |
