mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
[AArch64] Fix a build_vector pattern match fail
caused by defect in isBuildVectorAllZeros(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211567 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -33,3 +33,13 @@ define <4 x float> @foo(float %a, float %b, float %c, float %d) nounwind {
|
||||
%4 = insertelement <4 x float> %3, float %d, i32 3
|
||||
ret <4 x float> %4
|
||||
}
|
||||
|
||||
define <8 x i16> @build_all_zero(<8 x i16> %a) #1 {
|
||||
; CHECK-LABEL: build_all_zero:
|
||||
; CHECK: movn w[[GREG:[0-9]+]], #0x517f
|
||||
; CHECK-NEXT: fmov s[[FREG:[0-9]+]], w[[GREG]]
|
||||
; CHECK-NEXT: mul.8h v0, v0, v[[FREG]]
|
||||
%b = add <8 x i16> %a, <i16 -32768, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef>
|
||||
%c = mul <8 x i16> %b, <i16 -20864, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef>
|
||||
ret <8 x i16> %c
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user