projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
520c8ca
)
[PowerPC] Add test for failing lowering llvm.ppc.cfence on i128. NFC.
author
Kai Luo
<lkail@cn.ibm.com>
Fri, 25 Mar 2022 09:54:34 +0000
(17:54 +0800)
committer
Kai Luo
<lkail@cn.ibm.com>
Fri, 25 Mar 2022 09:56:11 +0000
(17:56 +0800)
llvm/test/CodeGen/PowerPC/cfence-i128.ll
[new file with mode: 0644]
patch
|
blob
diff --git a/llvm/test/CodeGen/PowerPC/cfence-i128.ll
b/llvm/test/CodeGen/PowerPC/cfence-i128.ll
new file mode 100644
(file)
index 0000000..
6775415
--- /dev/null
+++ b/
llvm/test/CodeGen/PowerPC/cfence-i128.ll
@@ -0,0
+1,15
@@
+; REQUIRES: asserts
+; RUN: not --crash llc -verify-machineinstrs -mtriple=powerpc64-unknown-unknown \
+; RUN: < %s 2>&1 | FileCheck %s
+
+declare void @llvm.ppc.sync()
+declare void @llvm.ppc.cfence.i128(i128)
+
+define void @test_cfence(i128 %src) {
+entry:
+ call void @llvm.ppc.sync()
+; CHECK: ExpandIntegerOperand Op{{.*}}llvm.ppc.cfence
+; CHECK: LLVM ERROR: Do not know how to expand this operator's operand!
+ call void @llvm.ppc.cfence.i128(i128 %src)
+ ret void
+}