diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-09-18 09:56:40 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-09-18 09:56:40 +0000 |
commit | e2d6f91d63a2e8cf77b07794cda7d9ef72504769 (patch) | |
tree | 8aaa9c82d2ca65020e98eb5954302f1e01a81e2a /test/CodeGen/SystemZ/cond-store-05.ll | |
parent | 8634b0ee47be832fbf3fd6ceebb8ac9104106bc2 (diff) | |
download | llvm-e2d6f91d63a2e8cf77b07794cda7d9ef72504769.tar.gz llvm-e2d6f91d63a2e8cf77b07794cda7d9ef72504769.tar.bz2 llvm-e2d6f91d63a2e8cf77b07794cda7d9ef72504769.tar.xz |
[SystemZ] Add unsigned compare-and-branch instructions
For some reason I never got around to adding these at the same time as
the signed versions. No idea why.
I'm not sure whether this SystemZII::BranchC* stuff is useful, or whether
it should just be replaced with an "is normal" flag. I'll leave that
for later though.
There are some boundary conditions that can be tweaked, such as preferring
unsigned comparisons for equality with [128, 256), and "<= 255" over "< 256",
but again I'll leave those for a separate patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SystemZ/cond-store-05.ll')
-rw-r--r-- | test/CodeGen/SystemZ/cond-store-05.ll | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/CodeGen/SystemZ/cond-store-05.ll b/test/CodeGen/SystemZ/cond-store-05.ll index e41c8fe4f6..f8056f73c9 100644 --- a/test/CodeGen/SystemZ/cond-store-05.ll +++ b/test/CodeGen/SystemZ/cond-store-05.ll @@ -13,7 +13,7 @@ define void @f1(float *%ptr, float %alt, i32 %limit) { ; CHECK: ste %f0, 0(%r2) ; CHECK: [[LABEL]]: ; CHECK: br %r14 - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load float *%ptr %res = select i1 %cond, float %orig, float %alt store float %res, float *%ptr @@ -29,7 +29,7 @@ define void @f2(float *%ptr, float %alt, i32 %limit) { ; CHECK: ste %f0, 0(%r2) ; CHECK: [[LABEL]]: ; CHECK: br %r14 - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load float *%ptr %res = select i1 %cond, float %alt, float %orig store float %res, float *%ptr @@ -46,7 +46,7 @@ define void @f3(float *%base, float %alt, i32 %limit) { ; CHECK: [[LABEL]]: ; CHECK: br %r14 %ptr = getelementptr float *%base, i64 1023 - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load float *%ptr %res = select i1 %cond, float %orig, float %alt store float %res, float *%ptr @@ -63,7 +63,7 @@ define void @f4(float *%base, float %alt, i32 %limit) { ; CHECK: [[LABEL]]: ; CHECK: br %r14 %ptr = getelementptr float *%base, i64 1024 - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load float *%ptr %res = select i1 %cond, float %orig, float %alt store float %res, float *%ptr @@ -80,7 +80,7 @@ define void @f5(float *%base, float %alt, i32 %limit) { ; CHECK: [[LABEL]]: ; CHECK: br %r14 %ptr = getelementptr float *%base, i64 131071 - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load float *%ptr %res = select i1 %cond, float %orig, float %alt store float %res, float *%ptr @@ -99,7 +99,7 @@ define void @f6(float *%base, float %alt, i32 %limit) { ; CHECK: [[LABEL]]: ; CHECK: br %r14 %ptr = getelementptr float *%base, i64 131072 - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load float *%ptr %res = select i1 %cond, float %orig, float %alt store float %res, float *%ptr @@ -116,7 +116,7 @@ define void @f7(float *%base, float %alt, i32 %limit) { ; CHECK: [[LABEL]]: ; CHECK: br %r14 %ptr = getelementptr float *%base, i64 -131072 - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load float *%ptr %res = select i1 %cond, float %orig, float %alt store float %res, float *%ptr @@ -135,7 +135,7 @@ define void @f8(float *%base, float %alt, i32 %limit) { ; CHECK: [[LABEL]]: ; CHECK: br %r14 %ptr = getelementptr float *%base, i64 -131073 - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load float *%ptr %res = select i1 %cond, float %orig, float %alt store float %res, float *%ptr @@ -154,7 +154,7 @@ define void @f9(i64 %base, i64 %index, float %alt, i32 %limit) { %add1 = add i64 %base, %index %add2 = add i64 %add1, 4096 %ptr = inttoptr i64 %add2 to float * - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load float *%ptr %res = select i1 %cond, float %orig, float %alt store float %res, float *%ptr @@ -169,7 +169,7 @@ define void @f10(float *%ptr, float %alt, i32 %limit) { ; CHECK: [[LABEL]]: ; CHECK: ste {{%f[0-5]}}, 0(%r2) ; CHECK: br %r14 - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load volatile float *%ptr %res = select i1 %cond, float %orig, float %alt store float %res, float *%ptr @@ -184,7 +184,7 @@ define void @f11(float *%ptr, float %alt, i32 %limit) { ; CHECK: [[LABEL]]: ; CHECK: ste %f0, 0(%r2) ; CHECK: br %r14 - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load float *%ptr %res = select i1 %cond, float %orig, float %alt store volatile float %res, float *%ptr @@ -204,7 +204,7 @@ define void @f12(float %alt, i32 %limit) { ; CHECK: br %r14 %ptr = alloca float call void @foo(float *%ptr) - %cond = icmp ult i32 %limit, 42 + %cond = icmp ult i32 %limit, 420 %orig = load float *%ptr %res = select i1 %cond, float %orig, float %alt store float %res, float *%ptr |