diff options
author | Colin LeMahieu <colinl@codeaurora.org> | 2015-06-17 20:29:33 +0000 |
---|---|---|
committer | Colin LeMahieu <colinl@codeaurora.org> | 2015-06-17 20:29:33 +0000 |
commit | 6fc90b32e32b966b5ec27b8d923674193323c3a2 (patch) | |
tree | 0c9ace433020b9b39939b006e565e7e55c02e96e /test/CodeGen/Hexagon/minu-zext-16.ll | |
parent | a1e31b45cceac55344ab94e19a7b9249b92a2f39 (diff) |
[Hexagon] Adding a number of other tests for min/max instructions and loading i1s.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Hexagon/minu-zext-16.ll')
-rw-r--r-- | test/CodeGen/Hexagon/minu-zext-16.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/Hexagon/minu-zext-16.ll b/test/CodeGen/Hexagon/minu-zext-16.ll new file mode 100644 index 00000000000..e27507da3d4 --- /dev/null +++ b/test/CodeGen/Hexagon/minu-zext-16.ll @@ -0,0 +1,11 @@ +; RUN: llc -march=hexagon < %s | FileCheck %s +; CHECK: minu + +define zeroext i16 @f(i16* noalias nocapture %src) nounwind readonly { +entry: + %arrayidx = getelementptr inbounds i16, i16* %src, i32 1 + %0 = load i16, i16* %arrayidx, align 1 + %cmp = icmp ult i16 %0, 32767 + %. = select i1 %cmp, i16 %0, i16 32767 + ret i16 %. +} |