summaryrefslogtreecommitdiff
path: root/test/CodeGen/SystemZ/int-cmp-11.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/SystemZ/int-cmp-11.ll')
-rw-r--r--test/CodeGen/SystemZ/int-cmp-11.ll45
1 files changed, 30 insertions, 15 deletions
diff --git a/test/CodeGen/SystemZ/int-cmp-11.ll b/test/CodeGen/SystemZ/int-cmp-11.ll
index c74135a5d3931..8fd9d8c3d4793 100644
--- a/test/CodeGen/SystemZ/int-cmp-11.ll
+++ b/test/CodeGen/SystemZ/int-cmp-11.ll
@@ -9,7 +9,8 @@ define double @f1(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, 0
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -20,7 +21,8 @@ define double @f2(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, 1
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -31,7 +33,8 @@ define double @f3(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, 127
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -43,7 +46,8 @@ define double @f4(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, 128
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -55,7 +59,8 @@ define double @f5(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, 32767
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -67,7 +72,8 @@ define double @f6(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, 32768
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -79,7 +85,8 @@ define double @f7(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, 2147483647
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -90,7 +97,8 @@ define double @f8(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, 2147483648
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -101,7 +109,8 @@ define double @f9(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, -1
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -112,7 +121,8 @@ define double @f10(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, -128
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -124,7 +134,8 @@ define double @f11(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, -129
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -136,7 +147,8 @@ define double @f12(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, -32768
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -148,7 +160,8 @@ define double @f13(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, -32769
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -160,7 +173,8 @@ define double @f14(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, -2147483648
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}
@@ -171,6 +185,7 @@ define double @f15(double %a, double %b, i64 %i1) {
; CHECK: ldr %f0, %f2
; CHECK: br %r14
%cond = icmp slt i64 %i1, -2147483649
- %res = select i1 %cond, double %a, double %b
+ %tmp = select i1 %cond, double %a, double %b
+ %res = fadd double %tmp, 1.0
ret double %res
}