blob: 72618670606db4378ff563fce361b16b2e4ee3b1 [file]
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
; Tests for the two-address instruction pass.
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a9 -arm-atomic-cfg-tidy=0 %s -o - | FileCheck %s
define void @PR13378(ptr %p, ptr %q, ptr %r, ptr %s) nounwind {
; This was orriginally a crasher trying to schedule the instructions.
; CHECK-LABEL: PR13378:
; CHECK: @ %bb.0: @ %entry
; CHECK-NEXT: vmov.i32 q8, #0x0
; CHECK-NEXT: vld1.32 {d0, d1}, [r0]
; CHECK-NEXT: vst1.32 {d16, d17}, [r1]
; CHECK-NEXT: vst1.32 {d0, d1}, [r2]
; CHECK-NEXT: vmov.f32 s4, #1.000000e+00
; CHECK-NEXT: vmov.f32 s3, s4
; CHECK-NEXT: vst1.32 {d0, d1}, [r3]
entry:
%0 = load <4 x float>, ptr %p, align 4
store <4 x float> zeroinitializer, ptr %q, align 4
store <4 x float> %0, ptr %r, align 4
%1 = insertelement <4 x float> %0, float 1.000000e+00, i32 3
store <4 x float> %1, ptr %s, align 4
unreachable
}