summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-08-20 04:17:17 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-08-20 04:17:17 +0000
commit3aa4eea26b7314fda84ed0612ef02986fe5e0846 (patch)
tree8ab7c2495c90a63ed4281721410c8ee52bac8f95
parentf5b81cfc499b034ab79cdfe2bf4596438635203f (diff)
amdgpu: Fix default case value for get_local_size
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@279359 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--amdgcn/lib/workitem/get_local_size.ll2
-rw-r--r--r600/lib/workitem/get_local_size.ll2
2 files changed, 2 insertions, 2 deletions
diff --git a/amdgcn/lib/workitem/get_local_size.ll b/amdgcn/lib/workitem/get_local_size.ll
index 59dd913..a943375 100644
--- a/amdgcn/lib/workitem/get_local_size.ll
+++ b/amdgcn/lib/workitem/get_local_size.ll
@@ -17,5 +17,5 @@ z_dim:
%z.ext = zext i32 %z to i64
ret i64 %z.ext
default:
- unreachable
+ ret i64 1
}
diff --git a/r600/lib/workitem/get_local_size.ll b/r600/lib/workitem/get_local_size.ll
index 136c9c6..92c6d26 100644
--- a/r600/lib/workitem/get_local_size.ll
+++ b/r600/lib/workitem/get_local_size.ll
@@ -14,5 +14,5 @@ z_dim:
%z = call i32 @llvm.r600.read.local.size.z()
ret i32 %z
default:
- unreachable
+ ret i32 1
}