diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-01-17 10:49:01 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-01-17 10:49:01 +0000 |
commit | 0cb08e448af7167ada767e0526aa44980e72ad08 (patch) | |
tree | 59214d5b7a046471bf9645a0828f4f6e2dd7215e /llvm/test/Bitcode | |
parent | bd13c9787f7076207f1b09823565572b16d31c10 (diff) | |
download | bcm5719-llvm-0cb08e448af7167ada767e0526aa44980e72ad08.tar.gz bcm5719-llvm-0cb08e448af7167ada767e0526aa44980e72ad08.zip |
Allow FP types for atomicrmw xchg
llvm-svn: 351427
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/compatibility.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/compatibility.ll b/llvm/test/Bitcode/compatibility.ll index 1d57f759391..320ed831db3 100644 --- a/llvm/test/Bitcode/compatibility.ll +++ b/llvm/test/Bitcode/compatibility.ll @@ -761,6 +761,12 @@ define void @atomics(i32* %word) { ret void } +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 + ret void +} + ;; Fast Math Flags define void @fastmathflags_unop(float %op1) { %f.nnan = fneg nnan float %op1 |