diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2015-03-31 13:35:12 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2015-03-31 13:35:12 +0000 |
commit | c05dff17929f47a37b43cfcd3bbfc7d865ea5557 (patch) | |
tree | d8dde58db96b7936d28cc3bb56b59a291ecba4df /llvm/test/CodeGen/Hexagon/expand-condsets-basic.ll | |
parent | 8c4fd2bdebac385bf935e51c69b3619d836a9c4f (diff) | |
download | bcm5719-llvm-c05dff17929f47a37b43cfcd3bbfc7d865ea5557.tar.gz bcm5719-llvm-c05dff17929f47a37b43cfcd3bbfc7d865ea5557.zip |
Expand MUX instructions early on Hexagon
This time with all files included.
llvm-svn: 233696
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/expand-condsets-basic.ll')
-rw-r--r-- | llvm/test/CodeGen/Hexagon/expand-condsets-basic.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/expand-condsets-basic.ll b/llvm/test/CodeGen/Hexagon/expand-condsets-basic.ll new file mode 100644 index 00000000000..16fe8af47b1 --- /dev/null +++ b/llvm/test/CodeGen/Hexagon/expand-condsets-basic.ll @@ -0,0 +1,11 @@ +; RUN: llc -march=hexagon < %s | FileCheck %s +; CHECK: if{{.*}}add +; CHECK: if{{.*}}sub + +define i32 @foo (i1 %a, i32 %b, i32 %c, i32 %d) nounwind { + %1 = add i32 %b, %d + %2 = sub i32 %c, %d + %3 = select i1 %a, i32 %1, i32 %2 + ret i32 %3 +} + |