summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-01-22 03:32:36 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-01-22 03:32:36 +0000
commitbfdba5e4fc351d3de15d5536a1d4e04a16573ddf (patch)
tree0d1dff23cf739d81409b302850eea4d890fd16b9 /llvm/test/Bitcode
parent1eaa04d682d684f7e83c263aa40e78ae8faab378 (diff)
downloadbcm5719-llvm-bfdba5e4fc351d3de15d5536a1d4e04a16573ddf.tar.gz
bcm5719-llvm-bfdba5e4fc351d3de15d5536a1d4e04a16573ddf.zip
IR: Add fp operations to atomicrmw
Add just fadd/fsub for now. llvm-svn: 351778
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/compatibility.ll7
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
}
OpenPOWER on IntegriCloud