diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:06:27 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:06:27 +0000 |
commit | cfca8b1f62f9a334467cc3e184f43b2097417ba7 (patch) | |
tree | f7484d4a9581f716f686f8eb0522bf2374d1c84e /test | |
parent | 8c993e1632383a7cc6793568be43fdd6f626a8c6 (diff) | |
download | llvm-cfca8b1f62f9a334467cc3e184f43b2097417ba7.tar.gz llvm-cfca8b1f62f9a334467cc3e184f43b2097417ba7.tar.bz2 llvm-cfca8b1f62f9a334467cc3e184f43b2097417ba7.tar.xz |
Add patterns for integer negate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/SystemZ/02-RetNeg.ll | 7 | ||||
-rw-r--r-- | test/CodeGen/SystemZ/03-RetNegImmSubreg.ll | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/02-RetNeg.ll b/test/CodeGen/SystemZ/02-RetNeg.ll new file mode 100644 index 0000000000..0bfbc7f11b --- /dev/null +++ b/test/CodeGen/SystemZ/02-RetNeg.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | llc -march=systemz | grep lcgr | count 1 + +define i64 @foo(i64 %a) { +entry: + %c = sub i64 0, %a + ret i64 %c +}
\ No newline at end of file diff --git a/test/CodeGen/SystemZ/03-RetNegImmSubreg.ll b/test/CodeGen/SystemZ/03-RetNegImmSubreg.ll new file mode 100644 index 0000000000..fa83803fc0 --- /dev/null +++ b/test/CodeGen/SystemZ/03-RetNegImmSubreg.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llc -march=systemz | grep lcr | count 1 + +define i32 @foo(i32 %a) { +entry: + %c = sub i32 0, %a + ret i32 %c +} + |