1;RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck %s -check-prefix=CHECK 2 3;CHECK-LABEL: {{^}}buffer_store_format_immoffs_x3: 4;CHECK-NOT: s_waitcnt 5;CHECK: buffer_store_format_xyz v[0:2], off, s[0:3], 0 offset:42 6define amdgpu_ps void @buffer_store_format_immoffs_x3(<4 x i32> inreg, <3 x float>) { 7main_body: 8 call void @llvm.amdgcn.buffer.store.format.v3f32(<3 x float> %1, <4 x i32> %0, i32 0, i32 42, i1 0, i1 0) 9 ret void 10} 11 12;CHECK-LABEL: {{^}}buffer_store_immoffs_x3: 13;CHECK-NOT: s_waitcnt 14;CHECK: buffer_store_dwordx3 v[0:2], off, s[0:3], 0 offset:42 15define amdgpu_ps void @buffer_store_immoffs_x3(<4 x i32> inreg, <3 x float>) { 16main_body: 17 call void @llvm.amdgcn.buffer.store.v3f32(<3 x float> %1, <4 x i32> %0, i32 0, i32 42, i1 0, i1 0) 18 ret void 19} 20 21;CHECK-LABEL: {{^}}raw_buffer_store_format_immoffs_x3: 22;CHECK-NOT: s_waitcnt 23;CHECK: buffer_store_format_xyz v[0:2], off, s[0:3], 0 offset:42 24define amdgpu_ps void @raw_buffer_store_format_immoffs_x3(<4 x i32> inreg, <3 x float>) { 25main_body: 26 call void @llvm.amdgcn.raw.buffer.store.format.v3f32(<3 x float> %1, <4 x i32> %0, i32 42, i32 0, i32 0) 27 ret void 28} 29 30;CHECK-LABEL: {{^}}raw_buffer_store_immoffs_x3: 31;CHECK-NOT: s_waitcnt 32;CHECK: buffer_store_dwordx3 v[0:2], off, s[0:3], 0 offset:42 33define amdgpu_ps void @raw_buffer_store_immoffs_x3(<4 x i32> inreg, <3 x float>) { 34main_body: 35 call void @llvm.amdgcn.raw.buffer.store.v3f32(<3 x float> %1, <4 x i32> %0, i32 42, i32 0, i32 0) 36 ret void 37} 38 39;CHECK-LABEL: {{^}}struct_buffer_store_immoffs_x3: 40;CHECK-NOT: s_waitcnt 41;CHECK: buffer_store_dwordx3 v[0:2], {{v[0-9]+}}, s[0:3], 0 idxen offset:42 42define amdgpu_ps void @struct_buffer_store_immoffs_x3(<4 x i32> inreg, <3 x float>) { 43main_body: 44 call void @llvm.amdgcn.struct.buffer.store.v3f32(<3 x float> %1, <4 x i32> %0, i32 0, i32 42, i32 0, i32 0) 45 ret void 46} 47 48declare void @llvm.amdgcn.buffer.store.v3f32(<3 x float>, <4 x i32>, i32, i32, i1, i1) #0 49declare void @llvm.amdgcn.buffer.store.format.v3f32(<3 x float>, <4 x i32>, i32, i32, i1, i1) #0 50declare void @llvm.amdgcn.raw.buffer.store.format.v3f32(<3 x float>, <4 x i32>, i32, i32, i32) #0 51declare void @llvm.amdgcn.raw.buffer.store.v3f32(<3 x float>, <4 x i32>, i32, i32, i32) #0 52declare void @llvm.amdgcn.struct.buffer.store.format.v3f32(<3 x float>, <4 x i32>, i32, i32, i32, i32) #0 53declare void @llvm.amdgcn.struct.buffer.store.v3f32(<3 x float>, <4 x i32>, i32, i32, i32, i32) #0 54