aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/SystemZ
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:06:00 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:06:00 +0000
commit8c993e1632383a7cc6793568be43fdd6f626a8c6 (patch)
tree9669c0302d286bf19f5a974cb52fae7acaefd7ea /test/CodeGen/SystemZ
parent25af73303f13357d18b0f33af44c2895438ad9c5 (diff)
downloadexternal_llvm-8c993e1632383a7cc6793568be43fdd6f626a8c6.zip
external_llvm-8c993e1632383a7cc6793568be43fdd6f626a8c6.tar.gz
external_llvm-8c993e1632383a7cc6793568be43fdd6f626a8c6.tar.bz2
Provide proper patterns for and with imm instructions. Tune the tests accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SystemZ')
-rw-r--r--test/CodeGen/SystemZ/02-RetAndImm.ll9
-rw-r--r--test/CodeGen/SystemZ/03-RetAndImmSubreg.ll4
-rw-r--r--test/CodeGen/SystemZ/03-RetAndSubreg.ll3
-rw-r--r--test/CodeGen/SystemZ/03-RetArgSubreg.ll4
-rw-r--r--test/CodeGen/SystemZ/03-RetOrSubreg.ll2
-rw-r--r--test/CodeGen/SystemZ/03-RetXorSubreg.ll2
-rw-r--r--test/CodeGen/SystemZ/2009-06-02-And32Imm.ll3
7 files changed, 13 insertions, 14 deletions
diff --git a/test/CodeGen/SystemZ/02-RetAndImm.ll b/test/CodeGen/SystemZ/02-RetAndImm.ll
index 5655e99..fb56f2f 100644
--- a/test/CodeGen/SystemZ/02-RetAndImm.ll
+++ b/test/CodeGen/SystemZ/02-RetAndImm.ll
@@ -1,8 +1,7 @@
-; XFAIL: *
-; RUN: llvm-as < %s | llc -march=systemz | grep nill | count 1
-; RUN: llvm-as < %s | llc -march=systemz | grep nilh | count 1
-; RUN: llvm-as < %s | llc -march=systemz | grep nihl | count 1
-; RUN: llvm-as < %s | llc -march=systemz | grep nihh | count 1
+; RUN: llvm-as < %s | llc -march=systemz | grep ngr | count 4
+; RUN: llvm-as < %s | llc -march=systemz | grep llilh | count 1
+; RUN: llvm-as < %s | llc -march=systemz | grep llihl | count 1
+; RUN: llvm-as < %s | llc -march=systemz | grep llihh | count 1
define i64 @foo1(i64 %a, i64 %b) {
entry:
diff --git a/test/CodeGen/SystemZ/03-RetAndImmSubreg.ll b/test/CodeGen/SystemZ/03-RetAndImmSubreg.ll
index 2eb1640..cb9af58 100644
--- a/test/CodeGen/SystemZ/03-RetAndImmSubreg.ll
+++ b/test/CodeGen/SystemZ/03-RetAndImmSubreg.ll
@@ -1,6 +1,4 @@
-; XFAIL: *
-; RUN: llvm-as < %s | llc -march=systemz | grep nill | count 3
-; RUN: llvm-as < %s | llc -march=systemz | grep nilh | count 3
+; RUN: llvm-as < %s | llc -march=systemz | grep ngr | count 6
define i32 @foo1(i32 %a, i32 %b) {
entry:
diff --git a/test/CodeGen/SystemZ/03-RetAndSubreg.ll b/test/CodeGen/SystemZ/03-RetAndSubreg.ll
index 465d118..7fbc589 100644
--- a/test/CodeGen/SystemZ/03-RetAndSubreg.ll
+++ b/test/CodeGen/SystemZ/03-RetAndSubreg.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | llc -march=systemz | grep ngr | count 4
+; RUN: llvm-as < %s | llc -march=systemz | grep ngr | count 3
+; RUN: llvm-as < %s | llc -march=systemz | grep nihf | count 1
define i32 @foo(i32 %a, i32 %b) {
entry:
diff --git a/test/CodeGen/SystemZ/03-RetArgSubreg.ll b/test/CodeGen/SystemZ/03-RetArgSubreg.ll
index 1135fbd..a4cc955 100644
--- a/test/CodeGen/SystemZ/03-RetArgSubreg.ll
+++ b/test/CodeGen/SystemZ/03-RetArgSubreg.ll
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=systemz | grep lgr | count 1
-; RUN: llvm-as < %s | llc -march=systemz | grep llilf | count 1
+; RUN: llvm-as < %s | llc -march=systemz | grep lgr | count 2
+; RUN: llvm-as < %s | llc -march=systemz | grep nihf | count 1
; RUN: llvm-as < %s | llc -march=systemz | grep lgfr | count 1
diff --git a/test/CodeGen/SystemZ/03-RetOrSubreg.ll b/test/CodeGen/SystemZ/03-RetOrSubreg.ll
index 86078f6..7491c08 100644
--- a/test/CodeGen/SystemZ/03-RetOrSubreg.ll
+++ b/test/CodeGen/SystemZ/03-RetOrSubreg.ll
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=systemz | grep ogr | count 3
-; RUN: llvm-as < %s | llc -march=systemz | grep llilf | count 1
+; RUN: llvm-as < %s | llc -march=systemz | grep nihf | count 1
; RUN: llvm-as < %s | llc -march=systemz | grep lgfr | count 1
diff --git a/test/CodeGen/SystemZ/03-RetXorSubreg.ll b/test/CodeGen/SystemZ/03-RetXorSubreg.ll
index 9b5eb9b..a0c313b 100644
--- a/test/CodeGen/SystemZ/03-RetXorSubreg.ll
+++ b/test/CodeGen/SystemZ/03-RetXorSubreg.ll
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=systemz | grep xgr | count 3
-; RUN: llvm-as < %s | llc -march=systemz | grep llilf | count 1
+; RUN: llvm-as < %s | llc -march=systemz | grep nihf | count 1
; RUN: llvm-as < %s | llc -march=systemz | grep lgfr | count 1
diff --git a/test/CodeGen/SystemZ/2009-06-02-And32Imm.ll b/test/CodeGen/SystemZ/2009-06-02-And32Imm.ll
index cf70af6..3868fd3 100644
--- a/test/CodeGen/SystemZ/2009-06-02-And32Imm.ll
+++ b/test/CodeGen/SystemZ/2009-06-02-And32Imm.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | llc -march=systemz | grep nilf | count 2
+; RUN: llvm-as < %s | llc -march=systemz | grep nilf | count 1
+; RUN: llvm-as < %s | llc -march=systemz | grep nill | count 1
define i32 @gnu_dev_major(i64 %__dev) nounwind readnone {
entry: