diff options
| author | Colin LeMahieu <colinl@codeaurora.org> | 2015-06-08 16:34:47 +0000 |
|---|---|---|
| committer | Colin LeMahieu <colinl@codeaurora.org> | 2015-06-08 16:34:47 +0000 |
| commit | 6aca6f0be55be9c2dc7e9457cc9d67bff86e43e0 (patch) | |
| tree | c19386d3ef6edc6bfc5e63493f2425c6d701c0db /llvm/test | |
| parent | 039955a44c58489b20ec489843a238a74770b297 (diff) | |
| download | bcm5719-llvm-6aca6f0be55be9c2dc7e9457cc9d67bff86e43e0.tar.gz bcm5719-llvm-6aca6f0be55be9c2dc7e9457cc9d67bff86e43e0.zip | |
[Hexagon] Adding functionality for searching for compound instruction pairs. Compound instructions reduce slot resource requirements freeing those packet slots up for more instructions.
llvm-svn: 239307
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/compound.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/compound.ll b/llvm/test/CodeGen/Hexagon/compound.ll new file mode 100644 index 00000000000..f8d36b8b77d --- /dev/null +++ b/llvm/test/CodeGen/Hexagon/compound.ll @@ -0,0 +1,17 @@ +; RUN: llc -march=hexagon -filetype=obj -o - %s | llvm-objdump -d - | FileCheck %s + +; CHECK: p0 = cmp.gt(r0,#-1); if (!p0.new) jump:nt + +declare void @a() +declare void @b() + +define void @foo(i32 %a) { +%b = icmp sgt i32 %a, -1 +br i1 %b, label %x, label %y +x: +call void @a() +ret void +y: +call void @b() +ret void +}
\ No newline at end of file |

