You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
parent
5cd5df71cc
commit
8e12397d70
21
external/llvm/test/CodeGen/ARM/2011-10-26-memset-inline.ll
vendored
Normal file
21
external/llvm/test/CodeGen/ARM/2011-10-26-memset-inline.ll
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
; Make sure short memsets on ARM lower to stores, even when optimizing for size.
|
||||
; RUN: llc -mattr=+strict-align < %s | FileCheck %s -check-prefix=CHECK-GENERIC
|
||||
; RUN: llc -mcpu=cortex-a8 < %s | FileCheck %s -check-prefix=CHECK-UNALIGNED
|
||||
|
||||
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"
|
||||
target triple = "thumbv7-apple-ios5.0.0"
|
||||
|
||||
; CHECK-GENERIC: strb
|
||||
; CHECK-GENERIC-NEXT: strb
|
||||
; CHECK-GENERIC-NEXT: strb
|
||||
; CHECK-GENERIC-NEXT: strb
|
||||
; CHECK-GENERIC-NEXT: strb
|
||||
; CHECK-UNALIGNED: strb
|
||||
; CHECK-UNALIGNED: str
|
||||
define void @foo(i8* nocapture %c) nounwind optsize {
|
||||
entry:
|
||||
call void @llvm.memset.p0i8.i64(i8* %c, i8 -1, i64 5, i32 1, i1 false)
|
||||
ret void
|
||||
}
|
||||
|
||||
declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind
|
Reference in New Issue
Block a user