diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 13:30:53 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 13:30:53 +0000 |
commit | 26ba0b1ec505bf6d6b8845e039690f9a06323ceb (patch) | |
tree | 0e3b3a6d725959462f6ddbb2bcb73593c8fdf698 /test/CodeGen | |
parent | 0676d2887afdcc966e51594887ffb5855cea5caa (diff) | |
download | external_llvm-26ba0b1ec505bf6d6b8845e039690f9a06323ceb.zip external_llvm-26ba0b1ec505bf6d6b8845e039690f9a06323ceb.tar.gz external_llvm-26ba0b1ec505bf6d6b8845e039690f9a06323ceb.tar.bz2 |
Add or reg-reg pattern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/SystemZ/02-RetOr.ll | 6 | ||||
-rw-r--r-- | test/CodeGen/SystemZ/02-RetOrImm.ll | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/02-RetOr.ll b/test/CodeGen/SystemZ/02-RetOr.ll new file mode 100644 index 0000000..ef9d63a --- /dev/null +++ b/test/CodeGen/SystemZ/02-RetOr.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | llc +define i64 @foo(i64 %a, i64 %b) { +entry: + %c = or i64 %a, %b + ret i64 %c +}
\ No newline at end of file diff --git a/test/CodeGen/SystemZ/02-RetOrImm.ll b/test/CodeGen/SystemZ/02-RetOrImm.ll new file mode 100644 index 0000000..b5fdb00 --- /dev/null +++ b/test/CodeGen/SystemZ/02-RetOrImm.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llc +define i64 @foo(i64 %a, i64 %b) { +entry: + %c = or i64 %a, 1 + ret i64 %c +} + +; FIXME: SystemZ has 4 or reg-imm instructions depending on imm, +; we need to support them someday.
\ No newline at end of file |