diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-08 08:55:49 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-09 15:04:38 -0700 |
commit | 4c5e43da7792f75567b693105cc53e3f1992ad98 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/CodeGen/Hexagon/vect/vect-truncate.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
download | external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.zip external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.gz external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.bz2 |
Update aosp/master llvm for rebase to r233350
Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
Diffstat (limited to 'test/CodeGen/Hexagon/vect/vect-truncate.ll')
-rw-r--r-- | test/CodeGen/Hexagon/vect/vect-truncate.ll | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/CodeGen/Hexagon/vect/vect-truncate.ll b/test/CodeGen/Hexagon/vect/vect-truncate.ll new file mode 100644 index 0000000..fd75bbd --- /dev/null +++ b/test/CodeGen/Hexagon/vect/vect-truncate.ll @@ -0,0 +1,42 @@ +; RUN: llc -march=hexagon < %s +; Used to fail with "Cannot select: 0x16cb7f0: v2i16 = truncate" + +; ModuleID = 'bugpoint-reduced-simplified.bc' +target datalayout = "e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32-f64:64:64-f32:32:32-a0:0-n32" +target triple = "hexagon-unknown-linux-gnu" + +define void @Autocorr() nounwind { +entry: + br label %for.body + +for.body: ; preds = %for.body, %entry + br i1 undef, label %polly.loop_header43, label %for.body + +do.cond: ; preds = %polly.loop_header + unreachable + +do.end: ; preds = %polly.loop_after45 + ret void + +polly.loop_header: ; preds = %polly.loop_after45, %polly.loop_body + %0 = icmp sle i32 undef, 239 + br i1 %0, label %polly.loop_body, label %do.cond + +polly.loop_body: ; preds = %polly.loop_header + %p_25 = call i32 @llvm.hexagon.SI.to.SXTHI.asrh(i32 undef) + %1 = insertelement <4 x i32> undef, i32 %p_25, i32 3 + %2 = trunc <4 x i32> %1 to <4 x i16> + store <4 x i16> %2, <4 x i16>* undef, align 8 + br label %polly.loop_header + +polly.loop_after45: ; preds = %polly.loop_header43 + br i1 undef, label %polly.loop_header, label %do.end + +polly.loop_header43: ; preds = %polly.loop_body44, %for.body + br i1 undef, label %polly.loop_body44, label %polly.loop_after45 + +polly.loop_body44: ; preds = %polly.loop_header43 + br label %polly.loop_header43 +} + +declare i32 @llvm.hexagon.SI.to.SXTHI.asrh(i32) nounwind readnone |