diff options
Diffstat (limited to 'test/CodeGen/Alpha/ornot.ll')
-rw-r--r-- | test/CodeGen/Alpha/ornot.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/ornot.ll b/test/CodeGen/Alpha/ornot.ll new file mode 100644 index 0000000..d2da888 --- /dev/null +++ b/test/CodeGen/Alpha/ornot.ll @@ -0,0 +1,11 @@ +; Make sure this testcase codegens to the ornot instruction +; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep ornot + +implementation ; Functions: + +long %bar(long %x, long %y) { +entry: + %tmp.1 = xor long %x, -1 ; <long> [#uses=1] + %tmp.2 = or long %y, %tmp.1 + ret long %tmp.2 +} |