aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/SystemZ/03-RetSubSubreg.ll
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:42:31 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:42:31 +0000
commita51752cbea5d57956f177470f463baeeee33f3d7 (patch)
treeab071bbc5d65c901f9b25530dcddb739edf296ab /test/CodeGen/SystemZ/03-RetSubSubreg.ll
parent0692fabb4e681da2907361346ff984290dbb3e40 (diff)
downloadexternal_llvm-a51752cbea5d57956f177470f463baeeee33f3d7.zip
external_llvm-a51752cbea5d57956f177470f463baeeee33f3d7.tar.gz
external_llvm-a51752cbea5d57956f177470f463baeeee33f3d7.tar.bz2
Add bunch of 32-bit patterns... Uffff :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SystemZ/03-RetSubSubreg.ll')
-rw-r--r--test/CodeGen/SystemZ/03-RetSubSubreg.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/03-RetSubSubreg.ll b/test/CodeGen/SystemZ/03-RetSubSubreg.ll
new file mode 100644
index 0000000..591b37d
--- /dev/null
+++ b/test/CodeGen/SystemZ/03-RetSubSubreg.ll
@@ -0,0 +1,22 @@
+; RUN: llvm-as < %s | llc -march=systemz | grep sr | count 3
+; RUN: llvm-as < %s | llc -march=systemz | grep llgfr | count 1
+; RUN: llvm-as < %s | llc -march=systemz | grep lgfr | count 2
+
+define i32 @foo(i32 %a, i32 %b) {
+entry:
+ %c = sub i32 %a, %b
+ ret i32 %c
+}
+
+define i32 @foo1(i32 %a, i32 %b) zeroext {
+entry:
+ %c = sub i32 %a, %b
+ ret i32 %c
+}
+
+define i32 @foo2(i32 %a, i32 %b) signext {
+entry:
+ %c = sub i32 %a, %b
+ ret i32 %c
+}
+