summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC
diff options
context:
space:
mode:
authorColin LeMahieu <colinl@codeaurora.org>2014-11-18 22:45:47 +0000
committerColin LeMahieu <colinl@codeaurora.org>2014-11-18 22:45:47 +0000
commit44fd1c8bdf537f7bcc6f39d220dea28550596112 (patch)
treedba10ca6548edd6d851b3b7987b4685eaadc48c5 /llvm/test/MC
parentd98f7558bf72e6e9e98f3d665342fc92573475a0 (diff)
downloadbcm5719-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.ll10
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
OpenPOWER on IntegriCloud