source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/byval_load_align.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 1.4 KB
Line 
1; RUN: llc < %s -mtriple thumbv7-apple-ios -O1 | FileCheck %s
2
3; rdar://15144402
4; Make sure we don't assume 4-byte alignment when loading from a byval argument
5; with alignment of 2.
6; CHECK: ldr r1, [r[[REG:[0-9]+]]]
7; CHECK: ldr r2, [r[[REG]], #4]
8; CHECK: ldr r3, [r[[REG]], #8]
9; CHECK-NOT: ldm
10; CHECK: .align 1 @ @sID
11
12%struct.ModuleID = type { [32 x i8], [32 x i8], i16 }
13
14@sID = internal constant %struct.ModuleID { [32 x i8] c"TEST\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [32 x i8] c"1.0\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", i16 23 }, align 2
15
16; Function Attrs: nounwind ssp
17define void @Client() #0 {
18entry:
19  tail call void @Logger(i8 signext 97, %struct.ModuleID* byval @sID) #2
20  ret void
21}
22
23declare void @Logger(i8 signext, %struct.ModuleID* byval) #1
24
25attributes #0 = { nounwind ssp "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
26attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
27attributes #2 = { nounwind }
Note: See TracBrowser for help on using the repository browser.