[llvm] a2c0c4a - [PowerPC] Add test for failing lowering llvm.ppc.cfence on i128. NFC.

Kai Luo via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 25 02:56:40 PDT 2022


Author: Kai Luo
Date: 2022-03-25T17:56:11+08:00
New Revision: a2c0c4abff20f4a15e23ebc4e3f34cc59329a4aa

URL: https://github.com/llvm/llvm-project/commit/a2c0c4abff20f4a15e23ebc4e3f34cc59329a4aa
DIFF: https://github.com/llvm/llvm-project/commit/a2c0c4abff20f4a15e23ebc4e3f34cc59329a4aa.diff

LOG: [PowerPC] Add test for failing lowering llvm.ppc.cfence on i128. NFC.

Added: 
    llvm/test/CodeGen/PowerPC/cfence-i128.ll

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/PowerPC/cfence-i128.ll b/llvm/test/CodeGen/PowerPC/cfence-i128.ll
new file mode 100644
index 0000000000000..6775415a0b423
--- /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
+}


        


More information about the llvm-commits mailing list