summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/AMDGPU/div_i128.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/div_i128.ll b/llvm/test/CodeGen/AMDGPU/div_i128.ll
new file mode 100644
index 00000000000..7c4c88b73d3
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/div_i128.ll
@@ -0,0 +1,7 @@
+; RUN: not llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs %s 2>&1 | FileCheck %s
+
+; CHECK: LLVM ERROR: unsupported libcall legalization
+define i128 @v_sdiv_i128_vv(i128 %lhs, i128 %rhs) {
+ %shl = sdiv i128 %lhs, %rhs
+ ret i128 %shl
+}
OpenPOWER on IntegriCloud