2015-09-25 03:52:21 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=bonaire -show-mc-encoding < %s | FileCheck -check-prefix=GCN -check-prefix=CI %s
|
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -show-mc-encoding < %s | FileCheck -check-prefix=GCN -check-prefix=VI %s
|
|
|
|
|
|
|
|
declare void @llvm.amdgcn.buffer.wbinvl1.vol() #0
|
|
|
|
|
|
|
|
; GCN-LABEL: {{^}}test_buffer_wbinvl1_vol:
|
2017-12-05 01:18:51 +08:00
|
|
|
; GCN-NEXT: ; %bb.0:
|
2015-09-25 03:52:21 +08:00
|
|
|
; CI-NEXT: buffer_wbinvl1_vol ; encoding: [0x00,0x00,0xc0,0xe1,0x00,0x00,0x00,0x00]
|
|
|
|
; VI-NEXT: buffer_wbinvl1_vol ; encoding: [0x00,0x00,0xfc,0xe0,0x00,0x00,0x00,0x00]
|
2016-11-16 07:55:15 +08:00
|
|
|
; GCN: s_endpgm
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @test_buffer_wbinvl1_vol() #0 {
|
2015-09-25 03:52:21 +08:00
|
|
|
call void @llvm.amdgcn.buffer.wbinvl1.vol()
|
2016-11-16 07:55:15 +08:00
|
|
|
; This used to crash in hazard recognizer
|
|
|
|
store i8 0, i8 addrspace(1)* undef, align 1
|
2015-09-25 03:52:21 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
attributes #0 = { nounwind }
|