diff options
| author | Colin LeMahieu <colinl@codeaurora.org> | 2015-06-04 21:16:16 +0000 |
|---|---|---|
| committer | Colin LeMahieu <colinl@codeaurora.org> | 2015-06-04 21:16:16 +0000 |
| commit | fc52c11d803d3975f17d443f504344d80cef70ed (patch) | |
| tree | cd88a6d3e0f2d0c81087f24e64dd20fd344524e9 /llvm/test | |
| parent | b8f38668d5d735cef02adbef7958776bc5426f56 (diff) | |
| download | bcm5719-llvm-fc52c11d803d3975f17d443f504344d80cef70ed.tar.gz bcm5719-llvm-fc52c11d803d3975f17d443f504344d80cef70ed.zip | |
[Hexagon] Adding functionality for duplexing. Duplexing is a way to compress commonly used pairs of instructions in order to reduce code size. The test case duplex.ll normally would be 8 bytes, assign register to 0 and jump to link register. After duplexing this is only 4 bytes. This also tests the HexagonMCShuffler code path which is used to make sure duplexed instructions still follow slot requirements.
llvm-svn: 239095
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/duplex.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/duplex.ll b/llvm/test/CodeGen/Hexagon/duplex.ll new file mode 100644 index 00000000000..80fe61ceccc --- /dev/null +++ b/llvm/test/CodeGen/Hexagon/duplex.ll @@ -0,0 +1,7 @@ +; RUN: llc -march=hexagon -filetype=obj -o - %s | llvm-objdump -d - | FileCheck %s + +; CHECK: c0 3f 00 48 48003fc0 + +define i32 @foo() { +ret i32 0 +}
\ No newline at end of file |

