From: Kai Luo Date: Sat, 11 Jun 2022 04:10:21 +0000 (+0800) Subject: [PowerPC] Add tests to reflect cfence on float point types. NFC. X-Git-Tag: upstream/15.0.7~5123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e06faedf1d3a5a719c963e16ededb340e8b788b7;p=platform%2Fupstream%2Fllvm.git [PowerPC] Add tests to reflect cfence on float point types. NFC. --- diff --git a/llvm/test/CodeGen/PowerPC/cfence-double.ll b/llvm/test/CodeGen/PowerPC/cfence-double.ll new file mode 100644 index 0000000..72c1a33 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/cfence-double.ll @@ -0,0 +1,12 @@ +; RUN: not --crash llc -opaque-pointers -mtriple=powerpc64le-unknown-unknown \ +; RUN: < %s 2>&1 | FileCheck %s +; RUN: not --crash llc -opaque-pointers -mtriple=powerpc64-unknown-unknown \ +; RUN: < %s 2>&1 | FileCheck %s + +; CHECK: Intrinsic has incorrect argument type! +; CHECK: ptr @llvm.ppc.cfence.f64 +define void @foo() { +entry: + %0 = load atomic double, double* undef acquire, align 8 + ret void +} diff --git a/llvm/test/CodeGen/PowerPC/cfence-float.ll b/llvm/test/CodeGen/PowerPC/cfence-float.ll new file mode 100644 index 0000000..71d2864 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/cfence-float.ll @@ -0,0 +1,12 @@ +; RUN: not --crash llc -opaque-pointers -mtriple=powerpc64le-unknown-unknown \ +; RUN: < %s 2>&1 | FileCheck %s +; RUN: not --crash llc -opaque-pointers -mtriple=powerpc64-unknown-unknown \ +; RUN: < %s 2>&1 | FileCheck %s + +; CHECK: Intrinsic has incorrect argument type! +; CHECK: ptr @llvm.ppc.cfence.f32 +define void @bar() { +entry: + %0 = load atomic float, float* undef acquire, align 8 + ret void +}