diff options
author | Stephen Canon <scanon@apple.com> | 2018-07-19 22:46:42 +0000 |
---|---|---|
committer | Stephen Canon <scanon@apple.com> | 2018-07-19 22:46:42 +0000 |
commit | 7e9afd4946f5b68a80e549139b2d2d1d42f01687 (patch) | |
tree | 6921d4731e510797a74e2d67cd8bf354a0f538d5 /test | |
parent | b3e4684b3587d304ffba454fbe2568f87bd00421 (diff) |
Skip out of SimplifyDemandedBits for BITCAST of f16 to i16
Mirrors the existing exit path for f128, avoiding a crash later on.
Differential Revision: https://reviews.llvm.org/D49524
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/pr38038.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr38038.ll b/test/CodeGen/X86/pr38038.ll new file mode 100644 index 00000000000..42ade7c5a76 --- /dev/null +++ b/test/CodeGen/X86/pr38038.ll @@ -0,0 +1,10 @@ +; RUN: llc < %s +; PR38038 + +define i8 @crash(half) { +entry: + %1 = bitcast half %0 to i16 + %.lobit = lshr i16 %1, 15 + %2 = trunc i16 %.lobit to i8 + ret i8 %2 +} |