diff options
author | Colin LeMahieu <colinl@codeaurora.org> | 2014-11-19 23:22:23 +0000 |
---|---|---|
committer | Colin LeMahieu <colinl@codeaurora.org> | 2014-11-19 23:22:23 +0000 |
commit | ac00643603f68b0d99dd18105ccf4d4ea6e4fbf7 (patch) | |
tree | ff80d627d824d3e7e7e8e6ab3da6ed8a1f3678e5 /llvm/test/MC | |
parent | 90a2f9b1103733dace968461c0715be10e6d7f41 (diff) | |
download | bcm5719-llvm-ac00643603f68b0d99dd18105ccf4d4ea6e4fbf7.tar.gz bcm5719-llvm-ac00643603f68b0d99dd18105ccf4d4ea6e4fbf7.zip |
[Hexagon] Adding A2_xor instruction with IR selection pattern and test.
llvm-svn: 222399
Diffstat (limited to 'llvm/test/MC')
-rw-r--r-- | llvm/test/MC/Hexagon/inst_xor.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/MC/Hexagon/inst_xor.ll b/llvm/test/MC/Hexagon/inst_xor.ll new file mode 100644 index 00000000000..fe989e50385 --- /dev/null +++ b/llvm/test/MC/Hexagon/inst_xor.ll @@ -0,0 +1,10 @@ +;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ +;; RUN: | llvm-objdump -s - | FileCheck %s + +define i32 @foo (i32 %a, i32 %b) +{ + %1 = xor i32 %a, %b + ret i32 %1 +} + +; CHECK: 0000 004160f1 00c09f52
\ No newline at end of file |