[llvm-branch-commits] [llvm-branch] r195475 - Add file missing from r195474.

Richard Sandiford rsandifo at linux.vnet.ibm.com
Fri Nov 22 09:37:53 PST 2013


Author: rsandifo
Date: Fri Nov 22 11:37:52 2013
New Revision: 195475

URL: http://llvm.org/viewvc/llvm-project?rev=195475&view=rev
Log:
Add file missing from r195474.

Added:
    llvm/branches/release_34/test/CodeGen/SystemZ/int-cmp-49.ll

Added: llvm/branches/release_34/test/CodeGen/SystemZ/int-cmp-49.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_34/test/CodeGen/SystemZ/int-cmp-49.ll?rev=195475&view=auto
==============================================================================
--- llvm/branches/release_34/test/CodeGen/SystemZ/int-cmp-49.ll (added)
+++ llvm/branches/release_34/test/CodeGen/SystemZ/int-cmp-49.ll Fri Nov 22 11:37:52 2013
@@ -0,0 +1,49 @@
+; That that we don't try to use z196 instructions on z10 for TMHH and TMHL.
+;
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 -O0 | FileCheck %s
+
+ at g = global i32 0
+
+; Check the lowest useful TMHL value.
+define void @f1(i64 %a) {
+; CHECK-LABEL: f1:
+; CHECK-NOT: risblg
+; CHECK-NOT: risbhg
+; CHECK: tmhl {{%r[0-5]}}, 1
+; CHECK-NOT: risblg
+; CHECK-NOT: risbhg
+; CHECK: br %r14
+entry:
+  %and = and i64 %a, 4294967296
+  %cmp = icmp eq i64 %and, 0
+  br i1 %cmp, label %exit, label %store
+
+store:
+  store i32 1, i32 *@g
+  br label %exit
+
+exit:
+  ret void
+}
+
+; Check the lowest useful TMHH value.
+define void @f2(i64 %a) {
+; CHECK-LABEL: f2:
+; CHECK-NOT: risblg
+; CHECK-NOT: risbhg
+; CHECK: tmhh {{%r[0-5]}}, 1
+; CHECK-NOT: risblg
+; CHECK-NOT: risbhg
+; CHECK: br %r14
+entry:
+  %and = and i64 %a, 281474976710656
+  %cmp = icmp ne i64 %and, 0
+  br i1 %cmp, label %exit, label %store
+
+store:
+  store i32 1, i32 *@g
+  br label %exit
+
+exit:
+  ret void
+}





More information about the llvm-branch-commits mailing list