1 ; RUN: llc -mtriple thumbv7--windows-itanium -filetype asm -o - %s | FileCheck %s 2 3 @source = common global [512 x i8] zeroinitializer, align 4 4 5 declare void @llvm.memset.p0i8.i32(i8* nocapture, i8, i32, i32, i1) nounwind 6 7 define void @function() { 8 entry: 9 call void @llvm.memset.p0i8.i32(i8* bitcast ([512 x i8]* @source to i8*), i8 0, i32 512, i32 0, i1 false) 10 unreachable 11 } 12 13 ; CHECK: movw r0, :lower16:source 14 ; CHECK: movt r0, :upper16:source 15 ; CHECK: movs r1, #0 16 ; CHECK: mov.w r2, #512 17 ; CHECK: memset 18 19