summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/atomic.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Assembler/atomic.ll')
-rw-r--r--llvm/test/Assembler/atomic.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Assembler/atomic.ll b/llvm/test/Assembler/atomic.ll
index a8b527f2f86..04ff262074f 100644
--- a/llvm/test/Assembler/atomic.ll
+++ b/llvm/test/Assembler/atomic.ll
@@ -39,3 +39,13 @@ define void @f(i32* %x) {
fence syncscope("device") seq_cst
ret void
}
+
+define void @fp_atomics(float* %x) {
+ ; CHECK: atomicrmw fadd float* %x, float 1.000000e+00 seq_cst
+ atomicrmw fadd float* %x, float 1.0 seq_cst
+
+ ; CHECK: atomicrmw volatile fadd float* %x, float 1.000000e+00 seq_cst
+ atomicrmw volatile fadd float* %x, float 1.0 seq_cst
+
+ ret void
+}
OpenPOWER on IntegriCloud