]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/Hexagon/no_struct_element.ll
Vendor import of llvm trunk r338150:
[FreeBSD/FreeBSD.git] / test / CodeGen / Hexagon / no_struct_element.ll
1 ; RUN: llc -march=hexagon < %s | FileCheck %s
2 ;
3 ; CHECK-NOT: 4294967295
4
5 target triple = "hexagon"
6
7 %s.0 = type {}
8 %s.1 = type { %s.2, %s.6 }
9 %s.2 = type { %s.3 }
10 %s.3 = type { %s.4 }
11 %s.4 = type { %s.5 }
12 %s.5 = type { i32 }
13 %s.6 = type { %s.6*, %s.6* }
14
15 @g0 = internal global %s.0 zeroinitializer, align 1
16 @g1 = private unnamed_addr constant [23 x i8] c"......................\00", align 1
17
18 ; Function Attrs: nounwind
19 define void @f0(i8* %a0) #0 {
20 b0:
21   %v0 = alloca i32, align 4
22   %v1 = getelementptr inbounds i8, i8* %a0, i32 1028
23   store volatile i32 0, i32* %v0, align 4
24   %v2 = bitcast i8* %v1 to i32*
25   %v3 = load volatile i32, i32* %v0, align 4
26   store volatile i32 %v3, i32* %v2, align 4
27   %v4 = getelementptr inbounds i8, i8* %a0, i32 1032
28   %v5 = bitcast i8* %v4 to %s.1*
29   call void @f1(%s.1* %v5, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @g1, i32 0, i32 0), %s.0* @g0) #0
30   ret void
31 }
32
33 ; Function Attrs: nounwind
34 declare void @f1(%s.1*, i8*, %s.0*) #0
35
36 attributes #0 = { nounwind }