diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 13:42:31 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 13:42:31 +0000 |
commit | a51752cbea5d57956f177470f463baeeee33f3d7 (patch) | |
tree | ab071bbc5d65c901f9b25530dcddb739edf296ab /test/CodeGen/SystemZ/03-RetAndSubreg.ll | |
parent | 0692fabb4e681da2907361346ff984290dbb3e40 (diff) | |
download | external_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-RetAndSubreg.ll')
-rw-r--r-- | test/CodeGen/SystemZ/03-RetAndSubreg.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/03-RetAndSubreg.ll b/test/CodeGen/SystemZ/03-RetAndSubreg.ll new file mode 100644 index 0000000..8b65757 --- /dev/null +++ b/test/CodeGen/SystemZ/03-RetAndSubreg.ll @@ -0,0 +1,20 @@ +; RUN: llvm-as < %s | llc -march=systemz | grep ngr | count 3 + +define i32 @foo(i32 %a, i32 %b) { +entry: + %c = and i32 %a, %b + ret i32 %c +} + +define i32 @foo1(i32 %a, i32 %b) zeroext { +entry: + %c = and i32 %a, %b + ret i32 %c +} + +define i32 @foo2(i32 %a, i32 %b) signext { +entry: + %c = and i32 %a, %b + ret i32 %c +} + |