AMDGPU: Add pass to detect used kernel features
[oota-llvm.git] / test / CodeGen / AArch64 / arm64-fold-lsl.ll
index acfecafbde72f17e97a3cff3cde87ab70ee69db2..e1acd6fdea7414b188f557c282f7e2342c2199ad 100644 (file)
@@ -14,7 +14,7 @@ define i16 @load_halfword(%struct.a* %ctx, i32 %xor72) nounwind {
   %conv82 = zext i32 %shr81 to i64
   %idxprom83 = and i64 %conv82, 255
   %arrayidx86 = getelementptr inbounds %struct.a, %struct.a* %ctx, i64 0, i64 %idxprom83
-  %result = load i16* %arrayidx86, align 2
+  %result = load i16, i16* %arrayidx86, align 2
   ret i16 %result
 }
 
@@ -26,7 +26,7 @@ define i32 @load_word(%struct.b* %ctx, i32 %xor72) nounwind {
   %conv82 = zext i32 %shr81 to i64
   %idxprom83 = and i64 %conv82, 255
   %arrayidx86 = getelementptr inbounds %struct.b, %struct.b* %ctx, i64 0, i64 %idxprom83
-  %result = load i32* %arrayidx86, align 4
+  %result = load i32, i32* %arrayidx86, align 4
   ret i32 %result
 }
 
@@ -38,7 +38,7 @@ define i64 @load_doubleword(%struct.c* %ctx, i32 %xor72) nounwind {
   %conv82 = zext i32 %shr81 to i64
   %idxprom83 = and i64 %conv82, 255
   %arrayidx86 = getelementptr inbounds %struct.c, %struct.c* %ctx, i64 0, i64 %idxprom83
-  %result = load i64* %arrayidx86, align 8
+  %result = load i64, i64* %arrayidx86, align 8
   ret i64 %result
 }