Stanislav Mekhanoshin | ea91cca | 2016-11-15 19:00:15 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s |
| 2 | |
| 3 | ; GCN-LABEL: {{^}}test_wave_barrier: |
| 4 | ; GCN-DAG: ; wave barrier |
| 5 | ; GCN-NOT: s_barrier |
| 6 | |
Matt Arsenault | 3dbeefa | 2017-03-21 21:39:51 +0000 | [diff] [blame] | 7 | define amdgpu_kernel void @test_wave_barrier() #0 { |
Stanislav Mekhanoshin | ea91cca | 2016-11-15 19:00:15 +0000 | [diff] [blame] | 8 | entry: |
| 9 | call void @llvm.amdgcn.wave.barrier() #1 |
| 10 | ret void |
| 11 | } |
| 12 | |
| 13 | declare void @llvm.amdgcn.wave.barrier() #1 |
| 14 | |
| 15 | attributes #0 = { nounwind } |
| 16 | attributes #1 = { convergent nounwind } |