mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90290 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
739 B
LLVM
15 lines
739 B
LLVM
; Checks to see that instcombine can handle a sign extension of i1
|
|
|
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
|
|
|
define void @test(<2 x i16> %srcA, <2 x i16> %srcB, <2 x i16>* %dst) nounwind {
|
|
entry:
|
|
; CHECK-NOT: tmask
|
|
; CHECK: ret
|
|
%cmp = icmp eq <2 x i16> %srcB, %srcA;
|
|
%sext = sext <2 x i1> %cmp to <2 x i16>;
|
|
%tmask = ashr <2 x i16> %sext, <i16 15, i16 15> ;
|
|
store <2 x i16> %tmask, <2 x i16>* %dst;
|
|
ret void
|
|
}
|