diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-01-22 18:18:02 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-01-22 18:18:02 +0000 |
commit | 39508331ef7e9417afc43f634c0ef23eb768d974 (patch) | |
tree | 37138807947246687637b0b5eccc66f6b5b9ed61 /llvm/test/Bitcode | |
parent | 1c5d23f1405994da05697b3b66c9f5a32735fdc3 (diff) | |
download | bcm5719-llvm-39508331ef7e9417afc43f634c0ef23eb768d974.tar.gz bcm5719-llvm-39508331ef7e9417afc43f634c0ef23eb768d974.zip |
Reapply "IR: Add fp operations to atomicrmw"
This reapplies commits r351778 and r351782 with
RISCV test fixes.
llvm-svn: 351850
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/compatibility.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/compatibility.ll b/llvm/test/Bitcode/compatibility.ll index 320ed831db3..3c5e86eee01 100644 --- a/llvm/test/Bitcode/compatibility.ll +++ b/llvm/test/Bitcode/compatibility.ll @@ -764,6 +764,13 @@ define void @atomics(i32* %word) { define void @fp_atomics(float* %word) { ; CHECK: %atomicrmw.xchg = atomicrmw xchg float* %word, float 1.000000e+00 monotonic %atomicrmw.xchg = atomicrmw xchg float* %word, float 1.0 monotonic + +; CHECK: %atomicrmw.fadd = atomicrmw fadd float* %word, float 1.000000e+00 monotonic + %atomicrmw.fadd = atomicrmw fadd float* %word, float 1.0 monotonic + +; CHECK: %atomicrmw.fsub = atomicrmw fsub float* %word, float 1.000000e+00 monotonic + %atomicrmw.fsub = atomicrmw fsub float* %word, float 1.0 monotonic + ret void } |