[PowerPC][AtomicExpand] Precommit IR tests for D127609. NFC.

This commit is contained in:
Kai Luo 2022-06-14 14:22:29 +08:00
parent 735e6c40b5
commit 029fc37270
2 changed files with 24 additions and 0 deletions

View File

@ -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 double @foo(double* %dp) {
entry:
%0 = load atomic double, double* %dp acquire, align 8
ret double %0
}

View File

@ -0,0 +1,12 @@
; RUN: not --crash opt -S -atomic-expand -mtriple=powerpc64le-unknown-unknown \
; RUN: -opaque-pointers < %s 2>&1 | FileCheck %s
; RUN: not --crash opt -S -atomic-expand -mtriple=powerpc64-unknown-unknown \
; RUN: -opaque-pointers < %s 2>&1 | FileCheck %s
; CHECK: Intrinsic has incorrect argument type!
; CHECK: ptr @llvm.ppc.cfence.f32
define float @bar(float* %fp) {
entry:
%0 = load atomic float, float* %fp acquire, align 4
ret float %0
}