[opaque pointer type] Add textual IR support for explicit type parameter to getelemen...
[oota-llvm.git] / test / CodeGen / R600 / frem.ll
index 02a00704cf0026c36460607615dc6e5f5dc261bf..9bc0542de5f5c7e9d43504c8907973b4495924c4 100644 (file)
@@ -15,7 +15,7 @@
 ; 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
@@ -34,7 +34,7 @@ define void @frem_f32(float addrspace(1)* %out, float addrspace(1)* %in1,
 ; 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
@@ -80,7 +80,7 @@ define void @unsafe_frem_f64(double addrspace(1)* %out, double addrspace(1)* %in
 
 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
@@ -90,7 +90,7 @@ define void @frem_v2f32(<2 x float> addrspace(1)* %out, <2 x float> addrspace(1)
 
 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
@@ -100,7 +100,7 @@ define void @frem_v4f32(<4 x float> addrspace(1)* %out, <4 x float> addrspace(1)
 
 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