; GCN: s_endpgm
define void @frem_f32(float addrspace(1)* %out, float addrspace(1)* %in1,
float addrspace(1)* %in2) #0 {
- %gep2 = getelementptr float addrspace(1)* %in2, i32 4
+ %gep2 = getelementptr float, float addrspace(1)* %in2, i32 4
%r0 = load float addrspace(1)* %in1, align 4
%r1 = load float addrspace(1)* %gep2, align 4
%r2 = frem float %r0, %r1
; GCN: s_endpgm
define void @unsafe_frem_f32(float addrspace(1)* %out, float addrspace(1)* %in1,
float addrspace(1)* %in2) #1 {
- %gep2 = getelementptr float addrspace(1)* %in2, i32 4
+ %gep2 = getelementptr float, float addrspace(1)* %in2, i32 4
%r0 = load float addrspace(1)* %in1, align 4
%r1 = load float addrspace(1)* %gep2, align 4
%r2 = frem float %r0, %r1
define void @frem_v2f32(<2 x float> addrspace(1)* %out, <2 x float> addrspace(1)* %in1,
<2 x float> addrspace(1)* %in2) #0 {
- %gep2 = getelementptr <2 x float> addrspace(1)* %in2, i32 4
+ %gep2 = getelementptr <2 x float>, <2 x float> addrspace(1)* %in2, i32 4
%r0 = load <2 x float> addrspace(1)* %in1, align 8
%r1 = load <2 x float> addrspace(1)* %gep2, align 8
%r2 = frem <2 x float> %r0, %r1
define void @frem_v4f32(<4 x float> addrspace(1)* %out, <4 x float> addrspace(1)* %in1,
<4 x float> addrspace(1)* %in2) #0 {
- %gep2 = getelementptr <4 x float> addrspace(1)* %in2, i32 4
+ %gep2 = getelementptr <4 x float>, <4 x float> addrspace(1)* %in2, i32 4
%r0 = load <4 x float> addrspace(1)* %in1, align 16
%r1 = load <4 x float> addrspace(1)* %gep2, align 16
%r2 = frem <4 x float> %r0, %r1
define void @frem_v2f64(<2 x double> addrspace(1)* %out, <2 x double> addrspace(1)* %in1,
<2 x double> addrspace(1)* %in2) #0 {
- %gep2 = getelementptr <2 x double> addrspace(1)* %in2, i32 4
+ %gep2 = getelementptr <2 x double>, <2 x double> addrspace(1)* %in2, i32 4
%r0 = load <2 x double> addrspace(1)* %in1, align 16
%r1 = load <2 x double> addrspace(1)* %gep2, align 16
%r2 = frem <2 x double> %r0, %r1