From a2c0c4abff20f4a15e23ebc4e3f34cc59329a4aa Mon Sep 17 00:00:00 2001 From: Kai Luo Date: Fri, 25 Mar 2022 17:54:34 +0800 Subject: [PATCH] [PowerPC] Add test for failing lowering llvm.ppc.cfence on i128. NFC. --- llvm/test/CodeGen/PowerPC/cfence-i128.ll | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 llvm/test/CodeGen/PowerPC/cfence-i128.ll diff --git a/llvm/test/CodeGen/PowerPC/cfence-i128.ll b/llvm/test/CodeGen/PowerPC/cfence-i128.ll new file mode 100644 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 +} -- 2.7.4