1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
3 @0 = internal unnamed_addr constant [4 x i5] [i5 2, i5 0, i5 2, i5 -1], align 1
5 ; Function Attrs: nobuiltin nounwind
6 define void @_start() {
8 ; CHECK: # %bb.0: # %Entry
9 ; CHECK-NEXT: movl __unnamed_1(%rip), %eax
10 ; CHECK-NEXT: movl %eax, -{{[0-9]+}}(%rsp)
11 ; CHECK-NEXT: movb -{{[0-9]+}}(%rsp), %cl
12 ; CHECK-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
13 ; CHECK-NEXT: movzbl -{{[0-9]+}}(%rsp), %esi
14 ; CHECK-NEXT: andl $31, %eax
15 ; CHECK-NEXT: andl $31, %esi
16 ; CHECK-NEXT: shll $5, %esi
17 ; CHECK-NEXT: orl %eax, %esi
18 ; CHECK-NEXT: andl $31, %edx
19 ; CHECK-NEXT: shll $10, %edx
20 ; CHECK-NEXT: orl %esi, %edx
21 ; CHECK-NEXT: movzbl %cl, %eax
22 ; CHECK-NEXT: movl %eax, %ecx
23 ; CHECK-NEXT: shll $15, %ecx
24 ; CHECK-NEXT: orl %edx, %ecx
25 ; CHECK-NEXT: movw %cx, -{{[0-9]+}}(%rsp)
26 ; CHECK-NEXT: shrl $16, %ecx
27 ; CHECK-NEXT: andl $15, %ecx
28 ; CHECK-NEXT: movb %cl, -{{[0-9]+}}(%rsp)
29 ; CHECK-NEXT: movb %al, -{{[0-9]+}}(%rsp)
30 ; CHECK-NEXT: cmpb $31, %al
31 ; CHECK-NEXT: je .LBB0_2
32 ; CHECK-NEXT: # %bb.1: # %Then
34 ; CHECK-NEXT: .LBB0_2: # %EndIf
37 %x = alloca [4 x i5], align 1
38 %y = alloca <4 x i5>, align 4
39 %z = alloca i5, align 1
40 %0 = bitcast [4 x i5]* %x to i8*
41 call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 %0, i8* align 1 bitcast ([4 x i5]* @0 to i8*), i64 4, i1 false)
42 %1 = getelementptr inbounds [4 x i5], [4 x i5]* %x, i64 0, i64 0
44 %3 = insertelement <4 x i5> undef, i5 %2, i32 0
45 %4 = getelementptr inbounds [4 x i5], [4 x i5]* %x, i64 0, i64 1
47 %6 = insertelement <4 x i5> %3, i5 %5, i32 1
48 %7 = getelementptr inbounds [4 x i5], [4 x i5]* %x, i64 0, i64 2
50 %9 = insertelement <4 x i5> %6, i5 %8, i32 2
51 %10 = getelementptr inbounds [4 x i5], [4 x i5]* %x, i64 0, i64 3
52 %11 = load i5, i5* %10
53 %12 = insertelement <4 x i5> %9, i5 %11, i32 3
54 store <4 x i5> %12, <4 x i5>* %y, align 4
55 %13 = load <4 x i5>, <4 x i5>* %y
56 %14 = extractelement <4 x i5> %13, i32 3
57 store i5 %14, i5* %z, align 1
58 %15 = load i5, i5* %z, align 1
59 %16 = icmp ne i5 %15, -1
60 br i1 %16, label %Then, label %Else
62 Then: ; preds = %Entry
63 call void @llvm.debugtrap()
66 Else: ; preds = %Entry
69 EndIf: ; preds = %Else, %Then
73 ; Function Attrs: argmemonly nounwind willreturn
74 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* noalias nocapture writeonly, i8* noalias nocapture readonly, i64, i1 immarg)
76 ; Function Attrs: nounwind
77 declare void @llvm.debugtrap()