[llvm] r355215 - [Tests] More missing atomicrmw combines
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 10:24:06 PST 2019
Author: reames
Date: Fri Mar 1 10:24:05 2019
New Revision: 355215
URL: http://llvm.org/viewvc/llvm-project?rev=355215&view=rev
Log:
[Tests] More missing atomicrmw combines
Modified:
llvm/trunk/test/Transforms/InstCombine/atomicrmw.ll
Modified: llvm/trunk/test/Transforms/InstCombine/atomicrmw.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/atomicrmw.ll?rev=355215&r1=355214&r2=355215&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/atomicrmw.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/atomicrmw.ll Fri Mar 1 10:24:05 2019
@@ -229,6 +229,14 @@ define double @sat_fsub_nan(double* %add
ret double %res
}
+; CHECK-LABEL: sat_fsub_nan_unused
+; CHECK-NEXT: atomicrmw fsub double* %addr, double 0x7FF00000FFFFFFFF monotonic
+; CHECK-NEXT: ret void
+define void @sat_fsub_nan_unused(double* %addr) {
+ atomicrmw fsub double* %addr, double 0x7FF00000FFFFFFFF monotonic
+ ret void
+}
+
; CHECK-LABEL: xchg_unused_monotonic
; CHECK-NEXT: store atomic i32 0, i32* %addr monotonic, align 4
; CHECK-NEXT: ret void
@@ -270,4 +278,21 @@ define void @sat_or_allones_unused(i32*
}
+; CHECK-LABEL: undef_operand_unused
+; CHECK-NEXT: atomicrmw or i32* %addr, i32 undef monotonic
+; CHECK-NEXT: ret void
+define void @undef_operand_unused(i32* %addr) {
+ atomicrmw or i32* %addr, i32 undef monotonic
+ ret void
+}
+
+; CHECK-LABEL: undef_operand_used
+; CHECK-NEXT: %res = atomicrmw or i32* %addr, i32 undef monotonic
+; CHECK-NEXT: ret i32 %res
+define i32 @undef_operand_used(i32* %addr) {
+ %res = atomicrmw or i32* %addr, i32 undef monotonic
+ ret i32 %res
+}
+
+
More information about the llvm-commits
mailing list