Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PowerPC][AtomicExpand] Precommit IR tests for D127609. NFC.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
llvm/test/Transforms/AtomicExpand/PowerPC/cfence-double.ll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |