[opaque pointer type] Add textual IR support for explicit type parameter to getelemen...
[oota-llvm.git] / test / CodeGen / R600 / trunc.ll
index fa44264e365080bcbde74c13059a6c552ee1e39b..5d557abbb5ae99bc69a8f952e6e27f1d7c918fb5 100644 (file)
@@ -89,8 +89,8 @@ define void @s_trunc_i64_to_i1(i32 addrspace(1)* %out, i64 %x) {
 ; SI: v_cndmask_b32_e64 {{v[0-9]+}}, -12, 63, [[CMP]]
 define void @v_trunc_i64_to_i1(i32 addrspace(1)* %out, i64 addrspace(1)* %in) {
   %tid = call i32 @llvm.r600.read.tidig.x() nounwind readnone
-  %gep = getelementptr i64 addrspace(1)* %in, i32 %tid
-  %out.gep = getelementptr i32 addrspace(1)* %out, i32 %tid
+  %gep = getelementptr i64, i64 addrspace(1)* %in, i32 %tid
+  %out.gep = getelementptr i32, i32 addrspace(1)* %out, i32 %tid
   %x = load i64 addrspace(1)* %gep
 
   %trunc = trunc i64 %x to i1