Fix for regression after Global Load Scalarization patch
llvm-svn: 289822
diff --git a/llvm/test/CodeGen/AMDGPU/mesa_regression.ll b/llvm/test/CodeGen/AMDGPU/mesa_regression.ll
new file mode 100644
index 0000000..90c4fe2
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/mesa_regression.ll
@@ -0,0 +1,11 @@
+; RUN: llc -O2 -mtriple amdgcn--amdhsa -mcpu=fiji -amdgpu-scalarize-global-loads=false -verify-machineinstrs < %s | FileCheck %s
+
+; CHECK-LABEL: %entry
+; CHECK: flat_load_dwordx4
+
+define amdgpu_kernel void @store_global(<16 x double> addrspace(1)* nocapture %out, <16 x double> addrspace(1)* nocapture readonly %in) {
+entry:
+ %tmp = load <16 x double>, <16 x double> addrspace(1)* %in
+ store <16 x double> %tmp, <16 x double> addrspace(1)* %out
+ ret void
+}