[WebAssembly] Don't perform the returned-argument optimization on constants.
[oota-llvm.git] / test / CodeGen / ARM / 2009-09-24-spill-align.ll
1 ; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - | FileCheck %s
2 ; pr4926
3
4 define void @test_vget_lanep16() nounwind {
5 entry:
6   %arg0_poly16x4_t = alloca <4 x i16>             ; <<4 x i16>*> [#uses=1]
7   %out_poly16_t = alloca i16                      ; <i16*> [#uses=1]
8   %"alloca point" = bitcast i32 0 to i32          ; <i32> [#uses=0]
9 ; CHECK: vldr
10   %0 = load <4 x i16>, <4 x i16>* %arg0_poly16x4_t, align 8  ; <<4 x i16>> [#uses=1]
11   %1 = extractelement <4 x i16> %0, i32 1         ; <i16> [#uses=1]
12   store i16 %1, i16* %out_poly16_t, align 2
13   br label %return
14
15 return:                                           ; preds = %entry
16   ret void
17 }