2014-09-25 18:30:26 +00:00
|
|
|
; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck --check-prefix=SI --check-prefix=FUNC %s
|
|
|
|
|
2014-10-17 23:32:49 +00:00
|
|
|
; FUNC-LABEL: {{^}}atomic_add_i32_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_add v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16{{$}}
|
2014-10-17 23:32:49 +00:00
|
|
|
define void @atomic_add_i32_offset(i32 addrspace(1)* %out, i32 %in) {
|
2014-09-25 18:30:26 +00:00
|
|
|
entry:
|
2014-10-17 23:32:50 +00:00
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile add i32 addrspace(1)* %gep, i32 %in seq_cst
|
2014-09-25 18:30:26 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2014-10-17 23:32:49 +00:00
|
|
|
; FUNC-LABEL: {{^}}atomic_add_i32_ret_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_add [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16 glc {{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:49 +00:00
|
|
|
define void @atomic_add_i32_ret_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
2014-10-17 23:32:50 +00:00
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile add i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_add_i32_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_add v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16{{$}}
|
2014-10-17 23:32:50 +00:00
|
|
|
define void @atomic_add_i32_addr64_offset(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile add i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_add_i32_ret_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_add [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16 glc{{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:50 +00:00
|
|
|
define void @atomic_add_i32_ret_addr64_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile add i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_add_i32:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_add v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0{{$}}
|
2014-10-17 23:32:50 +00:00
|
|
|
define void @atomic_add_i32(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile add i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_add_i32_ret:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_add [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 glc
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:50 +00:00
|
|
|
define void @atomic_add_i32_ret(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
2014-09-25 18:30:26 +00:00
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile add i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2014-10-17 23:32:49 +00:00
|
|
|
; FUNC-LABEL: {{^}}atomic_add_i32_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_add v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64{{$}}
|
2014-10-17 23:32:49 +00:00
|
|
|
define void @atomic_add_i32_addr64(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
2014-09-25 18:30:26 +00:00
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile add i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2014-10-17 23:32:49 +00:00
|
|
|
; FUNC-LABEL: {{^}}atomic_add_i32_ret_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_add [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 glc{{$}}
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:49 +00:00
|
|
|
define void @atomic_add_i32_ret_addr64(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
2014-09-25 18:30:26 +00:00
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile add i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
2014-10-17 23:32:52 +00:00
|
|
|
|
2014-10-17 23:32:54 +00:00
|
|
|
; FUNC-LABEL: {{^}}atomic_and_i32_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_and v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16{{$}}
|
2014-10-17 23:32:54 +00:00
|
|
|
define void @atomic_and_i32_offset(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile and i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_and_i32_ret_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_and [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16 glc {{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:54 +00:00
|
|
|
define void @atomic_and_i32_ret_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile and i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_and_i32_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_and v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16{{$}}
|
2014-10-17 23:32:54 +00:00
|
|
|
define void @atomic_and_i32_addr64_offset(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile and i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_and_i32_ret_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_and [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16 glc{{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:54 +00:00
|
|
|
define void @atomic_and_i32_ret_addr64_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile and i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_and_i32:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_and v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0{{$}}
|
2014-10-17 23:32:54 +00:00
|
|
|
define void @atomic_and_i32(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile and i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_and_i32_ret:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_and [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 glc
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:54 +00:00
|
|
|
define void @atomic_and_i32_ret(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile and i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_and_i32_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_and v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64{{$}}
|
2014-10-17 23:32:54 +00:00
|
|
|
define void @atomic_and_i32_addr64(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile and i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_and_i32_ret_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_and [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 glc{{$}}
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:54 +00:00
|
|
|
define void @atomic_and_i32_ret_addr64(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile and i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2014-10-17 23:32:52 +00:00
|
|
|
; FUNC-LABEL: {{^}}atomic_sub_i32_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_sub v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16{{$}}
|
2014-10-17 23:32:52 +00:00
|
|
|
define void @atomic_sub_i32_offset(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile sub i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_sub_i32_ret_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_sub [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16 glc {{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:52 +00:00
|
|
|
define void @atomic_sub_i32_ret_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile sub i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_sub_i32_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_sub v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16{{$}}
|
2014-10-17 23:32:52 +00:00
|
|
|
define void @atomic_sub_i32_addr64_offset(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile sub i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_sub_i32_ret_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_sub [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16 glc{{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:52 +00:00
|
|
|
define void @atomic_sub_i32_ret_addr64_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile sub i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_sub_i32:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_sub v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0{{$}}
|
2014-10-17 23:32:52 +00:00
|
|
|
define void @atomic_sub_i32(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile sub i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_sub_i32_ret:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_sub [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 glc
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:52 +00:00
|
|
|
define void @atomic_sub_i32_ret(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile sub i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_sub_i32_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_sub v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64{{$}}
|
2014-10-17 23:32:52 +00:00
|
|
|
define void @atomic_sub_i32_addr64(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile sub i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_sub_i32_ret_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_sub [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 glc{{$}}
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:52 +00:00
|
|
|
define void @atomic_sub_i32_ret_addr64(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile sub i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
2014-10-17 23:32:56 +00:00
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_max_i32_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_smax v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16{{$}}
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_max_i32_offset(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile max i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_max_i32_ret_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_smax [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16 glc {{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_max_i32_ret_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile max i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_max_i32_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_smax v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16{{$}}
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_max_i32_addr64_offset(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile max i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_max_i32_ret_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_smax [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16 glc{{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_max_i32_ret_addr64_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile max i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_max_i32:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_smax v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0{{$}}
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_max_i32(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile max i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_max_i32_ret:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_smax [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 glc
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_max_i32_ret(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile max i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_max_i32_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_smax v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64{{$}}
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_max_i32_addr64(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile max i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_max_i32_ret_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_smax [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 glc{{$}}
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_max_i32_ret_addr64(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile max i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umax_i32_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_umax v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16{{$}}
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_umax_i32_offset(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile umax i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umax_i32_ret_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_umax [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16 glc {{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_umax_i32_ret_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile umax i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umax_i32_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_umax v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16{{$}}
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_umax_i32_addr64_offset(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile umax i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umax_i32_ret_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_umax [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16 glc{{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_umax_i32_ret_addr64_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile umax i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umax_i32:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_umax v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0{{$}}
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_umax_i32(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile umax i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umax_i32_ret:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_umax [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 glc
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_umax_i32_ret(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile umax i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umax_i32_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_umax v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64{{$}}
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_umax_i32_addr64(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile umax i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umax_i32_ret_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_umax [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 glc{{$}}
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:56 +00:00
|
|
|
define void @atomic_umax_i32_ret_addr64(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile umax i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
2014-10-17 23:32:57 +00:00
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_min_i32_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_smin v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16{{$}}
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_min_i32_offset(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile min i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_min_i32_ret_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_smin [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16 glc {{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_min_i32_ret_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile min i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_min_i32_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_smin v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16{{$}}
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_min_i32_addr64_offset(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile min i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_min_i32_ret_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_smin [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16 glc{{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_min_i32_ret_addr64_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile min i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_min_i32:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_smin v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0{{$}}
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_min_i32(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile min i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_min_i32_ret:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_smin [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 glc
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_min_i32_ret(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile min i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_min_i32_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_smin v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64{{$}}
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_min_i32_addr64(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile min i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_min_i32_ret_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_smin [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 glc{{$}}
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_min_i32_ret_addr64(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile min i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umin_i32_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_umin v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16{{$}}
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_umin_i32_offset(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile umin i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umin_i32_ret_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_umin [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16 glc {{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_umin_i32_ret_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile umin i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umin_i32_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_umin v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16{{$}}
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_umin_i32_addr64_offset(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile umin i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umin_i32_ret_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_umin [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16 glc{{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_umin_i32_ret_addr64_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile umin i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umin_i32:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_umin v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0{{$}}
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_umin_i32(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile umin i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umin_i32_ret:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_umin [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 glc
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_umin_i32_ret(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile umin i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umin_i32_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_umin v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64{{$}}
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_umin_i32_addr64(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile umin i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_umin_i32_ret_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_umin [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 glc{{$}}
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:57 +00:00
|
|
|
define void @atomic_umin_i32_ret_addr64(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile umin i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
2014-10-17 23:32:59 +00:00
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_or_i32_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_or v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16{{$}}
|
2014-10-17 23:32:59 +00:00
|
|
|
define void @atomic_or_i32_offset(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile or i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_or_i32_ret_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_or [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16 glc {{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:59 +00:00
|
|
|
define void @atomic_or_i32_ret_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile or i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_or_i32_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_or v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16{{$}}
|
2014-10-17 23:32:59 +00:00
|
|
|
define void @atomic_or_i32_addr64_offset(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile or i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_or_i32_ret_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_or [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16 glc{{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:59 +00:00
|
|
|
define void @atomic_or_i32_ret_addr64_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile or i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_or_i32:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_or v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0{{$}}
|
2014-10-17 23:32:59 +00:00
|
|
|
define void @atomic_or_i32(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile or i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_or_i32_ret:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_or [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 glc
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:59 +00:00
|
|
|
define void @atomic_or_i32_ret(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile or i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_or_i32_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_or v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64{{$}}
|
2014-10-17 23:32:59 +00:00
|
|
|
define void @atomic_or_i32_addr64(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile or i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_or_i32_ret_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_or [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 glc{{$}}
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:32:59 +00:00
|
|
|
define void @atomic_or_i32_ret_addr64(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile or i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
2014-10-17 23:33:01 +00:00
|
|
|
|
2014-10-17 23:33:03 +00:00
|
|
|
; FUNC-LABEL: {{^}}atomic_xchg_i32_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_swap v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16{{$}}
|
2014-10-17 23:33:03 +00:00
|
|
|
define void @atomic_xchg_i32_offset(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile xchg i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xchg_i32_ret_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_swap [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16 glc {{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:33:03 +00:00
|
|
|
define void @atomic_xchg_i32_ret_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile xchg i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xchg_i32_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_swap v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16{{$}}
|
2014-10-17 23:33:03 +00:00
|
|
|
define void @atomic_xchg_i32_addr64_offset(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile xchg i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xchg_i32_ret_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_swap [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16 glc{{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:33:03 +00:00
|
|
|
define void @atomic_xchg_i32_ret_addr64_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile xchg i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xchg_i32:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_swap v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0{{$}}
|
2014-10-17 23:33:03 +00:00
|
|
|
define void @atomic_xchg_i32(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile xchg i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xchg_i32_ret:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_swap [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 glc
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:33:03 +00:00
|
|
|
define void @atomic_xchg_i32_ret(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile xchg i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xchg_i32_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_swap v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64{{$}}
|
2014-10-17 23:33:03 +00:00
|
|
|
define void @atomic_xchg_i32_addr64(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile xchg i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xchg_i32_ret_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_swap [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 glc{{$}}
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:33:03 +00:00
|
|
|
define void @atomic_xchg_i32_ret_addr64(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile xchg i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2014-10-17 23:33:01 +00:00
|
|
|
; FUNC-LABEL: {{^}}atomic_xor_i32_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_xor v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16{{$}}
|
2014-10-17 23:33:01 +00:00
|
|
|
define void @atomic_xor_i32_offset(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile xor i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xor_i32_ret_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_xor [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 offset:16 glc {{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:33:01 +00:00
|
|
|
define void @atomic_xor_i32_ret_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %out, i32 4
|
|
|
|
%0 = atomicrmw volatile xor i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xor_i32_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_xor v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16{{$}}
|
2014-10-17 23:33:01 +00:00
|
|
|
define void @atomic_xor_i32_addr64_offset(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile xor i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xor_i32_ret_addr64_offset:
|
2014-12-03 03:12:13 +00:00
|
|
|
; SI: buffer_atomic_xor [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 offset:16 glc{{$}}
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:33:01 +00:00
|
|
|
define void @atomic_xor_i32_ret_addr64_offset(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%gep = getelementptr i32 addrspace(1)* %ptr, i32 4
|
|
|
|
%0 = atomicrmw volatile xor i32 addrspace(1)* %gep, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xor_i32:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_xor v{{[0-9]+}}, s[{{[0-9]+}}:{{[0-9]+}}], 0{{$}}
|
2014-10-17 23:33:01 +00:00
|
|
|
define void @atomic_xor_i32(i32 addrspace(1)* %out, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile xor i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xor_i32_ret:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_xor [[RET:v[0-9]+]], s[{{[0-9]+}}:{{[0-9]+}}], 0 glc
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:33:01 +00:00
|
|
|
define void @atomic_xor_i32_ret(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in) {
|
|
|
|
entry:
|
|
|
|
%0 = atomicrmw volatile xor i32 addrspace(1)* %out, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xor_i32_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_xor v{{[0-9]+}}, v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64{{$}}
|
2014-10-17 23:33:01 +00:00
|
|
|
define void @atomic_xor_i32_addr64(i32 addrspace(1)* %out, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile xor i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}atomic_xor_i32_ret_addr64:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: buffer_atomic_xor [[RET:v[0-9]+]], v[{{[0-9]+}}:{{[0-9]+}}], s[{{[0-9]+}}:{{[0-9]+}}], 0 addr64 glc{{$}}
|
|
|
|
; SI: buffer_store_dword [[RET]]
|
2014-10-17 23:33:01 +00:00
|
|
|
define void @atomic_xor_i32_ret_addr64(i32 addrspace(1)* %out, i32 addrspace(1)* %out2, i32 %in, i64 %index) {
|
|
|
|
entry:
|
|
|
|
%ptr = getelementptr i32 addrspace(1)* %out, i64 %index
|
|
|
|
%0 = atomicrmw volatile xor i32 addrspace(1)* %ptr, i32 %in seq_cst
|
|
|
|
store i32 %0, i32 addrspace(1)* %out2
|
|
|
|
ret void
|
|
|
|
}
|