35cc7d5032dbe9e8169338124ec84f26454b48e7
[oota-llvm.git] / test / CodeGen / ARM / Windows / no-aeabi.ll
1 ; RUN: llc -mtriple=thumbv7-windows-itanium -mcpu=cortex-a9 -o - %s | FileCheck %s
2
3 declare void @llvm.memmove.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i1) nounwind
4 declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i1) nounwind
5
6 @source = common global [512 x i8] zeroinitializer, align 4
7 @target = common global [512 x i8] zeroinitializer, align 4
8
9 define void @move() nounwind {
10 entry:
11   call void @llvm.memmove.p0i8.p0i8.i32(i8* bitcast ([512 x i8]* @target to i8*), i8* bitcast ([512 x i8]* @source to i8*), i32 512, i1 false)
12   unreachable
13 }
14
15 ; CHECK-NOT: __aeabi_memmove
16
17 define void @copy() nounwind {
18 entry:
19   call void @llvm.memcpy.p0i8.p0i8.i32(i8* bitcast ([512 x i8]* @target to i8*), i8* bitcast ([512 x i8]* @source to i8*), i32 512, i1 false)
20   unreachable
21 }
22
23 ; CHECK-NOT: __aeabi_memcpy
24
25 define i32 @divide(i32 %i, i32 %j) nounwind {
26 entry:
27   %quotient = sdiv i32 %i, %j
28   ret i32 %quotient
29 }
30
31 ; CHECK-NOT: __aeabi_idiv
32