diff options
author | Colin LeMahieu <colinl@codeaurora.org> | 2014-11-18 22:45:47 +0000 |
---|---|---|
committer | Colin LeMahieu <colinl@codeaurora.org> | 2014-11-18 22:45:47 +0000 |
commit | 44fd1c8bdf537f7bcc6f39d220dea28550596112 (patch) | |
tree | dba10ca6548edd6d851b3b7987b4685eaadc48c5 /llvm/test/MC | |
parent | d98f7558bf72e6e9e98f3d665342fc92573475a0 (diff) | |
download | bcm5719-llvm-44fd1c8bdf537f7bcc6f39d220dea28550596112.tar.gz bcm5719-llvm-44fd1c8bdf537f7bcc6f39d220dea28550596112.zip |
[Hexagon] Adding A2_and instruction.
llvm-svn: 222274
Diffstat (limited to 'llvm/test/MC')
-rw-r--r-- | llvm/test/MC/Hexagon/inst_and.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/MC/Hexagon/inst_and.ll b/llvm/test/MC/Hexagon/inst_and.ll new file mode 100644 index 00000000000..16bf3047743 --- /dev/null +++ b/llvm/test/MC/Hexagon/inst_and.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 = and i32 %a, %b + ret i32 %1 +} + +; CHECK: 0000 004100f1 00c09f52
\ No newline at end of file |