[ARM] Adjust how NEON shifts are lowered
[llvm-core.git] / test / CodeGen / ARM / 2011-10-26-memset-inline.ll
blob8d6ce34c26d99306c4ac5eabf6d085ffe2687d04
1 ; Make sure short memsets on ARM lower to stores, even when optimizing for size.
2 ; RUN: llc -mattr=+strict-align < %s | FileCheck %s -check-prefix=CHECK-GENERIC
3 ; RUN: llc -mcpu=cortex-a8 < %s | FileCheck %s -check-prefix=CHECK-UNALIGNED
5 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32"
6 target triple = "thumbv7-apple-ios5.0.0"
8 ; CHECK-GENERIC:      strb
9 ; CHECK-GENERIC-NEXT: strb
10 ; CHECK-GENERIC-NEXT: strb
11 ; CHECK-GENERIC-NEXT: strb
12 ; CHECK-GENERIC-NEXT: strb
13 ; CHECK-UNALIGNED:    strb
14 ; CHECK-UNALIGNED:    str
15 define void @foo(i8* nocapture %c) nounwind optsize {
16 entry:
17   call void @llvm.memset.p0i8.i64(i8* %c, i8 -1, i64 5, i1 false)
18   ret void
21 declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i1) nounwind