forked from OSchip/llvm-project
[PowerPC][AtomicExpand] Precommit IR tests for D127609. NFC.
This commit is contained in:
parent
735e6c40b5
commit
029fc37270
|
@ -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
|
||||
}
|
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue