Matt Arsenault | d6adfb4 | 2015-09-24 19:52:21 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=amdgcn -mcpu=tahiti -show-mc-encoding < %s | FileCheck -check-prefix=GCN -check-prefix=SI %s |
| 2 | ; RUN: llc -march=amdgcn -mcpu=fiji -show-mc-encoding < %s | FileCheck -check-prefix=GCN -check-prefix=VI %s |
| 3 | |
| 4 | declare void @llvm.amdgcn.buffer.wbinvl1() #0 |
| 5 | |
| 6 | ; GCN-LABEL: {{^}}test_buffer_wbinvl1: |
| 7 | ; GCN-NEXT: ; BB#0: |
| 8 | ; SI-NEXT: buffer_wbinvl1 ; encoding: [0x00,0x00,0xc4,0xe1,0x00,0x00,0x00,0x00] |
| 9 | ; VI-NEXT: buffer_wbinvl1 ; encoding: [0x00,0x00,0xf8,0xe0,0x00,0x00,0x00,0x00] |
| 10 | ; GCN-NEXT: s_endpgm |
Matt Arsenault | 3dbeefa | 2017-03-21 21:39:51 +0000 | [diff] [blame] | 11 | define amdgpu_kernel void @test_buffer_wbinvl1() #0 { |
Matt Arsenault | d6adfb4 | 2015-09-24 19:52:21 +0000 | [diff] [blame] | 12 | call void @llvm.amdgcn.buffer.wbinvl1() |
| 13 | ret void |
| 14 | } |
| 15 | |
| 16 | attributes #0 = { nounwind } |